void (@NotNull final AnActionEvent e) { super.update(e); XValueNodeImpl node = getSelectedNode(e.getDataContext()); Presentation presentation = e.getPresentation(); if (node instanceof WatchNode) { presentation.setEnabledAndVisible(false); } else { presentation.setVisible(true); } }