void (@NotNull AnActionEvent e, @NotNull XDebuggerTree tree, @NotNull XWatchesView watchesView) { List<? extends WatchNodeImpl> watchNodes = getSelectedNodes(tree, WatchNodeImpl.class); if (watchNodes.size() != 1) return; WatchNodeImpl node = watchNodes.get(0); XDebuggerTreeNode root = tree.getRoot(); if (root instanceof WatchesRootNode) { ((WatchesRootNode)root).editWatch(node); } }