public static boolean hasVisibleToolwindowToolbars(@NotNull ToolWindow toolWindow) {
    Iterator<ActionToolbar> iterator = iterateToolbars(Collections.singletonList(toolWindow.getContentManager().getComponent())).iterator();
    return iterator.hasNext() && iterator.next().getComponent().isVisible();
  }
public static boolean hasVisibleToolwindowToolbars(@NotNull ToolWindow toolWindow)