void () { for (Project p : ProjectUtilCore.getOpenProjects()) { if (p.isDisposed()) { continue; } forEachToolWindow(p, tw -> { if (tw == null) return; final @Nullable Pair<Map<Long, ActionGroup>, Customizer> actions = ActionsLoader.getToolWindowActionGroup(tw.getId()); if (actions == null || actions.first.get(0L) == null) { LOG.debug("reloaded null action group (or it doesn't contain main-layout) for tool window: %s", tw.getId()); return; } TouchBarsManager.register(tw.getComponent(), actions.first, actions.second); LOG.debug("re-register tool-window '%s' for component: %s", tw.getId(), tw.getComponent()); }); } }