code: void addChildToComponentAndTag(UIComponent child) {
          UIComponent myComponent = this.getComponentInstance();
  
          int indexOfNextChildTag = this.getIndexOfNextChildTag();
          if (indexOfNextChildTag > myComponent.getChildCount()) {
              indexOfNextChildTag = myComponent.getChildCount();
          }
          myComponent.getChildren().add(indexOfNextChildTag, child);
          this.addChild(child);
      }
docs: /*
  Adds argument child to component tree as a child of this component.