void (@NotNull AnActionEvent e) { XWatchesView view = DebuggerUIUtil.getWatchesView(e); if (view instanceof XVariablesViewBase) { XDebuggerTreeNode root = ((XVariablesViewBase)view).getTree().getRoot(); if (root instanceof WatchesRootNode) { XDebugSession session = DebuggerUIUtil.getSession(e); if (session instanceof XDebugSessionImpl) { XDebugSessionTab.showWatchesView((XDebugSessionImpl)session); } ((WatchesRootNode)root).addNewWatch(); } } }