code: public static CollapsiblePanel wrapCollapsible(
          String title, JComponent component)
      {
          CollapsiblePanel collapsiblePanel = 
              new CollapsiblePanel(new GridLayout(1,1), title);
          collapsiblePanel.add(component);
          return collapsiblePanel;
      }
docs: Wrap the given component into a {@link CollapsiblePanel} with
  the given title
  
  @param title The title
  @param component The component
  @return The panel