@Override
    public void update(@NotNull AnActionEvent e) {
      final String actionId = myActionsTree.getSelectedActionId();
      e.getPresentation().setEnabled(actionId != null);
    }
@Override
    public void update(@NotNull AnActionEvent e)