public static @NotNull Collection<GitRepository> getRepositoriesInStates(@NotNull Project project, Repository.State @NotNull ... states) {
    Set<Repository.State> stateSet = ContainerUtil.newHashSet(states);
    return ContainerUtil.filter(getRepositories(project), repository -> stateSet.contains(repository.getState()));
  }
public static @NotNull Collection<GitRepository> getRepositoriesInStates(@NotNull Project project, Repository.State @NotNull ... states)