private static void ensureToolWindowExists(@NotNull FacetDependentToolWindow extension, @NotNull Project project) {
    ToolWindowManagerEx toolWindowManager = ToolWindowManagerEx.getInstanceEx(project);
    ToolWindow toolWindow = toolWindowManager.getToolWindow(extension.id);
    if (toolWindow == null) {
      ((ToolWindowManagerImpl)toolWindowManager).initToolWindow(extension);

      if (!extension.showOnStripeByDefault) {
        toolWindow = toolWindowManager.getToolWindow(extension.id);
        if (toolWindow != null) {
          WindowInfoImpl windowInfo = toolWindowManager.getLayout().getInfo(extension.id);
          if (windowInfo != null && !windowInfo.isFromPersistentSettings()) {
            toolWindow.setShowStripeButton(false);
          }
        }
      }
    }
  }
private static void ensureToolWindowExists(@NotNull FacetDependentToolWindow extension, @NotNull Project project)