private static AccessorListSyntax GetNewAccessorList(AccessorListSyntax accessorList) { if (accessorList.IsSingleline(includeExteriorTrivia: false)) { SyntaxTriviaList triviaList = accessorList.CloseBraceToken.LeadingTrivia .Add(SyntaxHelper.NewLine); return(WhitespaceOrEndOfLineRemover.RemoveFrom(accessorList) .WithCloseBraceToken(accessorList.CloseBraceToken.WithLeadingTrivia(triviaList))); } else { return(AccessorSyntaxRewriter.VisitNode(accessorList)); } }