@Override
  public TaskInfo @NotNull [] getCurrentTasks() {
    List<R> repositories = myRepositoryManager.getRepositories();
    Map<String, TaskInfo> tasks = FactoryMap.create(key -> new TaskInfo(key, new ArrayList<>()));
    for (R repository : repositories) {
      String branch = getActiveBranch(repository);
      if (branch != null) {
        tasks.get(branch).getRepositories().add(repository.getPresentableUrl());
      }
    }
    if (tasks.size() == 0) return new TaskInfo[0];
    if (isSyncEnabled()) {
      return new TaskInfo[]{tasks.values().iterator().next()};
    }
    else {
      return tasks.values().toArray(new TaskInfo[0]);
    }
  }
@Override
  public TaskInfo @NotNull [] getCurrentTasks()