/**
   * Adds the specified key and <tt>OptionsPane</tt> to current set of options. This adds this
   * <tt>OptionsPane</tt> to the set of <tt>OptionsPane</tt>s the user can select.
   *
   * @param parentKey the key of the parent node to add the new node to
   */
  private final OptionsTreeNode addOption(
      final String parentKey,
      final String childKey,
      final String label,
      @SuppressWarnings("unchecked") Class<? extends AbstractPaneItem>... clazzes) {
    StringBuilder sb = new StringBuilder();
    sb.append(label);
    sb.append(" ");
    sb.append(extractLabels(clazzes));

    OptionsTreeNode node = TREE_MANAGER.addNode(parentKey, childKey, label, sb.toString());
    node.setClasses(clazzes);
    return node;
  }
 /**
  * Adds a parent node to the tree. This node serves navigational purposes only, and so has no
  * corresponding <tt>OptionsPane</tt>. This method allows for multiple tiers of parent nodes, not
  * only top-level parents.
  *
  * @param parentKey the key of the parent node to add this parent node to
  * @param childKey the key of the new parent node that is a child of the <tt>parentKey</tt>
  *     argument
  */
 private final void addGroupTreeNode(final String parentKey, final String childKey, String label) {
   TREE_MANAGER.addNode(parentKey, childKey, label, label);
 }