DebuggerContextImpl (DataContext dataContext) { DebuggerTreePanel panel = getPanel(dataContext); if (panel != null) { return panel.getContext(); } else { Project project = CommonDataKeys.PROJECT.getData(dataContext); return project != null ? (DebuggerManagerEx.getInstanceEx(project)).getContext() : DebuggerContextImpl.EMPTY_CONTEXT; } }