void (@NotNull final Project project, @NotNull Collection<HgRepository> repositories, @Nullable HgRepository selectedRepo, @NotNull DataContext dataContext) { final HgRepository repository = repositories.size() > 1 ? letUserSelectRepository(project, repositories, selectedRepo) : ContainerUtil.getFirstItem(repositories); if (repository != null) { new Task.Backgroundable(project, HgBundle.message("action.hg4idea.run.conflict.resolver.description")) { @Override public void run(@NotNull ProgressIndicator indicator) { new HgConflictResolver(project).resolve(repository.getRoot()); HgUtil.markDirectoryDirty(project, repository.getRoot()); } }.queue(); } }