XWatchesView (@NotNull AnActionEvent e) { XWatchesView view = e.getData(XWatchesView.DATA_KEY); Project project = e.getProject(); if (view == null && project != null) { XDebugSession session = getSession(e); if (session != null) { XDebugSessionTab tab = ((XDebugSessionImpl)session).getSessionTab(); if (tab != null) { return tab.getWatchesView(); } } } return view; }