void (@NotNull final AnActionEvent e) { XDebuggerTree tree = XDebuggerTree.getTree(e); e.getPresentation().setEnabledAndVisible(tree != null && getSelectedNodes(tree, WatchNodeImpl.class).size() == 1); }