void (@NotNull ContentManagerEvent event) { ServiceView serviceView = getServiceView(event.getContent()); if (serviceView != null && !isMainView(serviceView)) { myModelFilter.removeFilter(serviceView.getModel().getFilter()); myContentHolder.processAllModels(ServiceViewModel::filtersChanged); } if (myContentManager.getContentCount() == 1) { Content mainContent = getMainContent(myContentManager); if (mainContent != null) { mainContent.setDisplayName(null); } } }