void (@NotNull ContentManagerEvent event) { boolean selected = ContentManagerEvent.ContentOperation.add == event.getOperation(); JComponent component = event.getContent().getComponent(); if (component instanceof ProblemsViewTab problemsView) { ProblemsView.selectionChanged(selected, event.getContent()); if (selected) { state.setSelectedTabId(problemsView.getTabId()); } } }