code: public CollapsiblePanel addToAccordion(
          String title, JComponent component, boolean minimized) 
      {
          CollapsiblePanel collapsiblePanel = 
              GuiUtils.wrapCollapsible(title, component);
          collapsiblePanel.setMinimized(minimized);
          contentPanel.add(collapsiblePanel);
          collapsiblePanels.put(component, collapsiblePanel);
          revalidate();
          return collapsiblePanel;
      }
docs: Add the given component to this accordion, wrapping it into a
  collapsible panel with the given title.
  
  @param title The title
  @param component The component to add
  @param minimized Whether the collapsible panel should be minimized
  @return The collapsible panel that has been created internally