code: public void addChild(Item child) {
          if (children == null) {
              children = new ArrayList<>();
          }
  
          children.add(child);
      }
docs: Adds a child. The child can be both {@link Item}s or another {@link Tree}s.