String (@NotNull ProblemsViewPanel panel) { if (panel.getSession().isDisposed()) return UNKNOWN; ToolWindow window = ProblemsView.getToolWindow(panel.getProject()); if (window == null) return UNKNOWN; ContentManager manager = window.getContentManagerIfCreated(); if (manager == null) return UNKNOWN; Content content = manager.getContent(panel); if (content == null) return UNKNOWN; int index = manager.getIndexOfContent(content); return 0 <= index && index < TABS.size() ? TABS.get(index) : UNKNOWN; }