@Override
    public void update(@NotNull AnActionEvent e) {

      final Presentation presentation = e.getPresentation();
      presentation.setEnabled(myTree.getSelectionCount() == 1 && canRunSelection());
    }
@Override
    public void update(@NotNull AnActionEvent e)