void (@NotNull final String branchName, @NotNull final List<HgRepository> repositories, @NotNull final HgRepository selectedRepository) { new Task.Backgroundable(myProject, HgBundle.message("hg4idea.branch.comparing", branchName)) { @Override public void run(@NotNull ProgressIndicator indicator) { newWorker(indicator).compare(branchName, repositories, selectedRepository); } }.queue(); }