code: <T extends Node> NodeList<T> add(NodeList<T> list, T obj) {
          if (list == null) {
              list = new NodeList<>();
          }
          list.add(obj);
          return list;
      }
docs: Add obj to list and return it. Create a new list if list is null