class LegacyAllocationConverter {

  public int addClassName(@NotNull String className) {
    int id;
    if (!myAllocatedClasses.containsKey(className)) {
      id = myAllocatedClasses.size();
      myAllocatedClasses.put(className, new ClassName(className, id));
    }
    else {
      id = myAllocatedClasses.get(className).myClassId;
    }
    return id;
  }

}