void (@NotNull AnActionEvent e) { final CheckedTreeNode[] selectedSuites = mySuitesTree.getSelectedNodes(CheckedTreeNode.class, null); final Presentation presentation = e.getPresentation(); presentation.setEnabled(selectedSuites.length > 0); }