void (@NotNull List<String> ids, @NotNull ToolWindowManager toolWindowManager) { for (String id : ids) { final @Nullable Pair<Map<Long, ActionGroup>, Customizer> actions = ActionsLoader.getToolWindowActionGroup(id); if (actions == null || actions.first.get(0L) == null) { LOG.debug("null action group (or it doesn't contain main-layout) for tool window: %s", id); continue; } ToolWindow toolWindow = toolWindowManager.getToolWindow(id); if (toolWindow == null) continue; TouchBarsManager.register(toolWindow.getComponent(), actions.first, actions.second); LOG.debug("register tool-window '%s' for component: %s", id, toolWindow.getComponent()); } }