void (@NotNull ContentManagerEvent event) { ServiceView serviceView = getServiceView(event.getContent()); if (serviceView == null) return; if (event.getOperation() == ContentManagerEvent.ContentOperation.add) { serviceView.onViewSelected(); } else { serviceView.onViewUnselected(); } }