public ClassDef adjust(ClassDef classDef) {
    return new ClassDef(
        target,
        classDef.getOffset(),
        adjustType(classDef.getTypeIndex()),
        classDef.getAccessFlags(),
        adjustType(classDef.getSupertypeIndex()),
        adjustTypeListOffset(classDef.getInterfacesOffset()),
        classDef.getSourceFileIndex(),
        classDef.getAnnotationsOffset(),
        classDef.getClassDataOffset(),
        classDef.getStaticValuesOffset());
  }
Maps the index offsets from one dex file to those in another. For example, if you have string #5
in the old dex file, its position in the new dex file is {@code strings[5]}.
android/android_framework/dex-maker/src/main/java/com/android/dx/merge/IndexMap.java