docs: public void setVisiblePanels(List<AbstractPanel> panels) {
          hideAllTabs();
  
          for (Component component : fullTabList) {
              if (panels.contains(component)) {
                  setVisible(component, true);
              } else if (component instanceof AbstractPanel) {
                  AbstractPanel ap = (AbstractPanel) component;
                  if (!canHidePanel(ap)) {
                      setVisible(component, true);
                  } else {
                      ap.setParent(this);
                  }
              }
          }
  
          if (getSelectedComponent() == null && getTabCount() > 0) {
              setSelectedIndex(0);
          }
      }