Appears on Visual Studio 2022 V17.11.2
**Stack Trace: **
Call StackSystem.ArgumentNullException : Value cannot be null.
Parameter name: returnType
at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.MethodDeclaration(SyntaxList`1 attributeLists,SyntaxTokenList modifiers,TypeSyntax returnType,ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier,SyntaxToken identifier,TypeParameterListSyntax typeParameterList,ParameterListSyntax parameterList,SyntaxList`1 constraintClauses,BlockSyntax body,ArrowExpressionClauseSyntax expressionBody,SyntaxToken semicolonToken)
at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.MethodDeclaration(TypeSyntax returnType,SyntaxToken identifier)
at DevExpress.CodeAnalysis.CSharp.CodeDeclare.MethodDeclarator.RegisterDeclarationForMethodReference(InsertionPlaceInfo insertionInfo,ICSharpSyntaxService syntaxService,SemanticModel semantic,Int32 position,SyntaxToken identifier,TypeSyntax returnType,ParameterListSyntax parameterList,IEnumerable`1 typeParametersInfos,ITypeSymbol returnTypeSymbol)
at async DevExpress.CodeAnalysis.CSharp.CodeDeclare.MethodDeclarator.RegisterDeclarationForSimpleName(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.CSharp.CodeDeclare.MethodDeclarator.RegisterNodeDeclarations(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.CSharp.CodeDeclare.MemberDeclarator.GetNodeReplacements(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.CSharp.CodeDeclare.ElementDeclarator.Execute(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.CSharp.CodeDeclare.DeclareRefactoring.Execute(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.CSharp.CodeDeclare.DeclareRefactoring.ApplyChangeManagerAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.TargetPicker.TargetPickerRegistrator.DoRegistration(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.RegisterRefactoring(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.<>c__DisplayClass12_0.<GetRefactoringFromProviderAsync>b__0(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsync[T](<Unknown Parameters>)
Hi,
I reproduced this issue. We will fix it soon.