@Override
    public void update(@NotNull AnActionEvent e) {
      TreePath selectionPath = myTree.getSelectionPath();
      e.getPresentation().setEnabled(
        !myModuleProfiles.isEmpty() &&
        selectionPath != null && selectionPath.getLastPathComponent() instanceof MyModuleNode);
    }
@Override
    public void update(@NotNull AnActionEvent e)