private static bool CanBeSimplified(PrefixUnaryExpressionSyntax logicalNot)
        {
            switch (logicalNot.Operand?.Kind())
            {
            case SyntaxKind.TrueLiteralExpression:
            case SyntaxKind.FalseLiteralExpression:
            {
                return(logicalNot.OperatorToken.TrailingTrivia.IsWhitespaceOrEndOfLine() &&
                       logicalNot.Operand.GetLeadingTrivia().IsWhitespaceOrEndOfLine());
            }

            case SyntaxKind.LogicalNotExpression:
            {
                var logicalNot2 = (PrefixUnaryExpressionSyntax)logicalNot.Operand;

                TextSpan span = TextSpan.FromBounds(
                    logicalNot.OperatorToken.Span.End,
                    logicalNot2.Operand.Span.Start);

                return(logicalNot
                       .DescendantTrivia(span)
                       .All(f => f.IsWhitespaceOrEndOfLine()));
            }
            }

            return(false);
        }