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