public @NotNull Collection<VirtualFile> getMergingRoots() {
    return getRootsFromRepositories(filter(GitRepositoryManager.getInstance(myProject).getRepositories(),
                                           repository -> repository.getState() == Repository.State.MERGING));
  }
public @NotNull Collection<VirtualFile> getMergingRoots()