void (Project project, Collection<? extends ServiceViewContributor<?>> contributors) { for (ServiceViewContributor<?> contributor : contributors) { ActionManager actionManager = ActionManager.getInstance(); String actionId = getActivateContributorActionId(contributor); if (actionId == null) continue; AnAction action = actionManager.getAction(actionId); if (action == null) { action = new ActivateToolWindowByContributorAction(contributor, contributor.getViewDescriptor(project).getPresentation()); actionManager.registerAction(actionId, action); } } }