void (@NotNull ServiceViewContributor<?> extension, @NotNull PluginDescriptor pluginDescriptor) { myNotInitializedContributors.remove(extension); ServiceEvent e = ServiceEvent.createUnloadSyncResetEvent(extension.getClass()); myModel.handle(e).onProcessed(o -> { eventHandled(e); for (Map.Entry<String, Collection<ServiceViewContributor<?>>> entry : myGroups.entrySet()) { if (entry.getValue().remove(extension)) { if (entry.getValue().isEmpty()) { unregisterToolWindow(entry.getKey()); } break; } } unregisterActivateByContributorActions(extension); }); }