code: public static <T extends XNSerializable> List<T> parseList(XNElement container, 
              String itemName, Supplier<T> creator) {
          List<T> result = new ArrayList<>();
          for (XNElement e : container.childrenWithName(itemName)) {
              T obj = creator.get();
              obj.load(e);
              result.add(obj);
          }
          return result;
      }
docs: Parses an container for the given itemName elements and loads them into the
  given Java XNSerializable object.
  @param <T> the element object type
  @param container the container XNElement
  @param itemName the item name
  @param creator the function to create Ts
  @return the list of elements