void (@NotNull Project project, Consumer<? super ToolWindow> func) { ToolWindowManagerEx toolWindowManager = ToolWindowManagerEx.getInstanceEx(project); for (ToolWindow window : toolWindowManager.getToolWindows()) { func.accept(window); } }