code: public void addLabel(Label label) {
          assertNotNull(label);
          labels.add(label);
          label.setParent(this);
      }
docs: Adds a label and sets its parent to this node.
  @throws IllegalArgumentException} if label is {@code null}