private static boolean isActionAllowedOnFolder(String action,
private static boolean isActionAllowedOnFolder(Action action,
  private static boolean isActionAllowedOnFolder(String action,                                                 Organizer organizer,                                                 DefaultMutableTreeNode node) {    if (action.equals(NEW_EXPERIMENT_ACTION) ||        action.equals(NEW_RECIPE_ACTION) ||        action.equals(NEW_FOLDER_ACTION) ||        action.equals(RENAME_ACTION))       return true;    Enumeration nodes = node.breadthFirstEnumeration();    nodes.nextElement(); // advance over first element which is the folder    // can delete empty folder, but not root    if (!nodes.hasMoreElements() && !node.isRoot())       return action.equals(DELETE_ACTION);    return false;  }