public static IInvocationExpression AsInvocationExpression(ICSharpStatement statement)
        {
            var expressionStatement = statement as IExpressionStatement;
            if (expressionStatement == null)
                return null;

            var visitor = new InvocationVisitor();
            expressionStatement.Expression.Accept(visitor);
            if (visitor.InvocationExpression == null)
                return null;

            return visitor.InvocationExpression;
        }
        public static IInvocationExpression AsInvocationExpression(ICSharpStatement statement)
        {
            var expressionStatement = statement as IExpressionStatement;

            if (expressionStatement == null)
            {
                return(null);
            }

            var visitor = new InvocationVisitor();

            expressionStatement.Expression.Accept(visitor);
            if (visitor.InvocationExpression == null)
            {
                return(null);
            }

            return(visitor.InvocationExpression);
        }