private void checkDescriptor(String typeDescriptor) {
    if (typeDescriptor.endsWith(";")) {
      int lastBrace = typeDescriptor.lastIndexOf('[');
      if (lastBrace < 0) {
        addClassWithHierachy(typeDescriptor.substring(1, typeDescriptor.length() - 1));
      } else {
        assert typeDescriptor.length() > lastBrace + 3
            && typeDescriptor.charAt(lastBrace + 1) == 'L';
        addClassWithHierachy(typeDescriptor.substring(lastBrace + 2, typeDescriptor.length() - 1));
      }
    }
  }
@param jarOfRoots Archive containing the class files resulting of the tracing, typically this
    is the result of running ProGuard.
android/android_framework/dex-maker/src/main/java/com/android/multidex/ClassReferenceListBuilder.java