public static async Task <Document> RefactorAsync( Document document, StatementSyntax statement, CancellationToken cancellationToken) { StatementSyntax newNode = statement .AppendTrailingTrivia(CSharpFactory.NewLineTrivia()) .WithFormatterAnnotation(); return(await document.ReplaceNodeAsync(statement, newNode, cancellationToken).ConfigureAwait(false)); }