Checking for static method invocation in ExpressionCommandBase