code: private static void addPanel(TabbedPanel2 tabbedPanel, AbstractPanel panel, boolean visible) {
  		if (visible) {
  			tabbedPanel.addTab(panel);
  		} else {
  			tabbedPanel.addTabHidden(panel);
  		}
  	}
docs: Adds the given {@code panel} to the given {@code tabbedPanel}.
  
  @param tabbedPanel the tabbed panel to add the panel
  @param panel the panel to add
  @param visible {@code true} if the panel should be visible, {@code false} otherwise.
  @see #addPanels(TabbedPanel2, List, boolean)