code: protected void updateClasses(HashMap<String,List<Class>> list, String superclass, List<Class> classes) {
      if (!list.containsKey(superclass)) {
        list.put(superclass, classes);
      }
      else {
        for (Class cls : classes) {
          if (!list.get(superclass).contains(cls))
            list.get(superclass).add(cls);
        }
      }
    }
docs: Updates list for the superclass.
  
  @param list	the list to update
  @param superclass	the superclass
  @param classes	the names to add