public bool IsApplyEvent(MethodCallLink methodCallLink)
 {
     return ((MethodNode) methodCallLink.Target).Method == ApplyMethod;
 }
 public bool IsQueryExecution(MethodCallLink call)
 {
     return ((MethodNode) call.Target).Method.IsGenericMethod && ((MethodNode) call.Target).Method == QueryExecute;
 }
 public Type ExtractEventType(MethodCallLink methodCallLink)
 {
     return methodCallLink.GenericMethodArguments[0];
 }
 public Type GetCalledQueryType(MethodCallLink call)
 {
     return call.ActualParameterTypes[0][0].Type;
 }