ValueCollector (@NotNull AnActionEvent e) { XDebugSession session = e.getData(XDebugSession.DATA_KEY); XValueNodeImpl node = getNode(e); return new ValueCollector(XDebuggerTree.getTree(e.getDataContext())) { @Override public void handleInCollector(Project project, String value, XDebuggerTree tree) { if (session == null || node == null) { return; } DebuggerUtilsEx.addCollectionHistoryTab(session, node); } }; }