if (organizer.isNodeBeingEdited(selectedNode))
if (organizer.isNodeInUse(selectedNode))
  private void doPopup(MouseEvent e) {    TreePath selPath = workspace.getPathForLocation(e.getX(), e.getY());    if (selPath == null) return;    // set the selected node to be the node the mouse is pointing at    workspace.setSelectionPath(selPath);    DefaultMutableTreeNode selectedNode =      (DefaultMutableTreeNode) selPath.getLastPathComponent();    Object o = selectedNode.getUserObject();    if (organizer.isNodeBeingEdited(selectedNode))      return; // can't do anything with these    if (selectedNode.isRoot()) {      configureMenu(rootMenu);      rootMenu.show(workspace, e.getX(), e.getY());    } else if (o instanceof SocietyComponent) {      configureMenu(societyMenu);      societyMenu.show(workspace, e.getX(), e.getY());    } else if (o instanceof RecipeComponent) {      configureMenu(recipeMenu);      recipeMenu.show(workspace, e.getX(), e.getY());    } else if (o instanceof Experiment) {      configureMenu(experimentMenu);      experimentMenu.show(workspace, e.getX(), e.getY());    } else if (o instanceof String) {      configureMenu(folderMenu);      folderMenu.show(workspace, e.getX(), e.getY());    }  }