private void transformTries(Dex.Section out, Code.Try[] tries, int[] catchHandlerOffsets) {
    for (Code.Try tryItem : tries) {
      out.writeInt(tryItem.getStartAddress());
      out.writeUnsignedShort(tryItem.getInstructionCount());
      out.writeUnsignedShort(catchHandlerOffsets[tryItem.getCatchHandlerIndex()]);
    }
  }
Writes the catch handlers to {@code codeOut} and returns their indices.
android/android_framework/dex-maker/src/main/java/com/android/dx/merge/DexMerger.java