code: private static void removePanels(TabbedPanel2 tabbedPanel, List<AbstractPanel> panels) {
  		for (AbstractPanel panel : panels) {
  			removeTabPanel(tabbedPanel, panel);
  		}
  		tabbedPanel.revalidate();
  	}
docs: Removes the given {@code panels} from the given {@code tabbedPanel}.
  <p>
  After removing all the panels the tabbed panel is revalidated.
  
  @param tabbedPanel the tabbed panel to remove the panels
  @param panels the panels to remove
  @see #addPanel(TabbedPanel2, AbstractPanel, boolean)
  @see javax.swing.JComponent#revalidate()