docs: public void registerComponent(BaseUIComponent component) {
          if (registeredComponents == null) {
              registeredComponents = new ArrayList<>();
          }
  
          registeredComponents.add(component);
          component.setAttribute(Constants.ATTR_CONTAINER, this);
          component.setAttribute(Constants.ATTR_VISIBLE, component.isVisible());
          component.setVisible(isVisible());
      }