void (@NotNull ContentManagerEvent event) { if (event.getContent() == threadsContent) { if (threadsContent.isSelected()) { panel.setUpdateEnabled(true); if (panel.isRefreshNeeded()) { panel.rebuildIfVisible(DebuggerSession.Event.CONTEXT); } } else { panel.setUpdateEnabled(false); } } }