private static void SetSignature([NotNull] IMethodDeclaration methodDeclaration, [NotNull] IType newReturnValue, [NotNull] string newName) { methodDeclaration.SetType(newReturnValue); if(!methodDeclaration.IsAbstract) methodDeclaration.SetAsync(true); methodDeclaration.SetName(newName); }