void (@NotNull ContentManagerEvent event) { JComponent component = event.getContent().getComponent(); setToolbarVisible(Collections.singletonList(component), isToolbarVisible(toolWindow, properties)); // support nested content managers, e.g. RunnerLayoutUi as content component ContentManager contentManager = component instanceof DataProvider ? PlatformDataKeys.CONTENT_MANAGER.getData((DataProvider)component) : null; if (contentManager != null) { contentManager.addContentManagerListener(this); } }