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