private static void activate(@NotNull ToolWindow toolWindow,
                               @NotNull AbstractExternalSystemSettings<?, ?, ?> settings,
                               boolean showToolWindow) {
    if (toolWindow.isAvailable() && !showToolWindow) {
      return;
    }

    AppUIUtil.invokeLaterIfProjectAlive(toolWindow.getProject(), () -> {
      boolean shouldShow = showToolWindow &&
                           settings.getLinkedProjectsSettings().size() == 1 &&
                           settings.getProject().getUserData(ExternalSystemDataKeys.NEWLY_CREATED_PROJECT) == null;
      toolWindow.setAvailable(true, shouldShow ? toolWindow::show : null);
    });
  }
private static void activate(@NotNull ToolWindow toolWindow,
                               @NotNull AbstractExternalSystemSettings<?, ?, ?> settings,
                               boolean showToolWindow)