void (@NotNull String branchName, @NotNull String currentBranch, @NotNull CommitCompareInfo compareInfo, @NotNull HgRepository selectedRepository) { if (compareInfo.isEmpty()) { Messages.showInfoMessage(myProject, XmlStringUtil .wrapInHtml(HgBundle.message("hg4idea.branch.compare.no.changes.msg", currentBranch, branchName)), HgBundle.message("hg4idea.branch.compare.no.changes")); } else { new CompareBranchesDialog(new HgCompareBranchesHelper(myProject), branchName, currentBranch, compareInfo, selectedRepository, false).show(); } }