code: public static <T extends HierarchyEntity<T, ?>> void addParent(Collection<T> nodes) {
      addParent(nodes, null);
    }
docs: <p>
  addParent.
  </p>
  
  @param nodes a {@link java.util.Collection} object.
  @param <T> a T object.