private int findCatchHandlerIndex(CatchHandler[] catchHandlers, int offset) {
      for (int i = 0; i < catchHandlers.length; i++) {
        CatchHandler catchHandler = catchHandlers[i];
        if (catchHandler.getOffset() == offset) {
          return i;
        }
      }
      throw new IllegalArgumentException();
    }
Look up a descriptor index from a type index. Cheaper than: {@code
open(tableOfContents.typeIds.off + (index * SizeOf.TYPE_ID_ITEM)).readInt();}
android/android_framework/dex-maker/src/main/java/com/android/dex/Dex.java