public ClassDefItem getClassOrNull(String name) {
    try {
      Type type = Type.internClassName(name);
      return (ClassDefItem) classDefs.get(new CstType(type));
    } catch (IllegalArgumentException ex) {
      // Translate exception, per contract.
      return null;
    }
  }
Gets the class definition with the given name, if any.

@param name {@code non-null;} the class name to look for
@return {@code null-ok;} the class with the given name, or {@code null} if there is no such
    class
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/DexFile.java