public static boolean isAccessor(int type) {
    switch (type) {
      case METHOD_HANDLE_TYPE_STATIC_PUT:
      case METHOD_HANDLE_TYPE_STATIC_GET:
      case METHOD_HANDLE_TYPE_INSTANCE_PUT:
      case METHOD_HANDLE_TYPE_INSTANCE_GET:
        return true;
      default:
        return false;
    }
  }
Reports whether the method handle type is a field accessor.

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