private void registerToolWindows(Collection<String> toolWindowIds) {
    Set<? extends ServiceViewContributor<?>> activeContributors = getActiveContributors();
    for (Map.Entry<String, Collection<ServiceViewContributor<?>>> entry : myGroups.entrySet()) {
      if (!toolWindowIds.contains(entry.getKey())) continue;

      Collection<ServiceViewContributor<?>> contributors = entry.getValue();
      ServiceViewContributor<?> contributor = ContainerUtil.getFirstItem(contributors, null);
      if (contributor == null) continue;

      ServiceViewToolWindowDescriptor descriptor = ToolWindowId.SERVICES.equals(entry.getKey()) ?
                                                   getServicesToolWindowDescriptor() :
                                                   getContributorToolWindowDescriptor(contributor);
      registerToolWindow(descriptor, !Collections.disjoint(activeContributors, contributors));
    }
  }
private void registerToolWindows(Collection<String> toolWindowIds)