private static void notifyAboutConnectionFailure(RequestFailedException e, Project project) {
    String details = e.getMessage();
    TaskRepository repository = e.getRepository();
    String content = TaskBundle.message("notification.content.p.href.configure.server.p");
    if (!StringUtil.isEmpty(details)) {
      content = "<p>" + details + "</p>" + content; //NON-NLS
    }
    new Notification(TASKS_NOTIFICATION_GROUP, TaskBundle.message("notification.title.cannot.connect.to", repository.getUrl()), content, NotificationType.WARNING)
      .setListener((notification, event) -> {
        TaskRepositoriesConfigurable configurable = new TaskRepositoriesConfigurable(project);
        ShowSettingsUtil.getInstance().editConfigurable(project, configurable);
        if (!ArrayUtil.contains(repository, TaskManager.getManager(project).getAllRepositories())) {
          notification.expire();
        }
      })
      .notify(project);
  }
private static void notifyAboutConnectionFailure(RequestFailedException e, Project project)