public static boolean isInvocation(int type) {
    switch (type) {
      case METHOD_HANDLE_TYPE_INVOKE_STATIC:
      case METHOD_HANDLE_TYPE_INVOKE_INSTANCE:
      case METHOD_HANDLE_TYPE_INVOKE_CONSTRUCTOR:
      case METHOD_HANDLE_TYPE_INVOKE_DIRECT:
      case METHOD_HANDLE_TYPE_INVOKE_INTERFACE:
        return true;
      default:
        return false;
    }
  }
Reports whether the method handle type is a method invocation.

@param type the method handle type
@return true if the method handle type is a method invocation, false otherwise
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/cst/CstMethodHandle.java