String (boolean forward) { String firstBranch = forward ? myCurrentBranchName : myBranchName; String secondBranch = forward ? myBranchName : myCurrentBranchName; return new HtmlBuilder().appendRaw( DvcsBundle.message("compare.branches.commits.that.exist.in.branch.but.not.in.branch.vcs.command", HtmlChunk.text(secondBranch).bold().code(), HtmlChunk.text(firstBranch).bold().code(), HtmlChunk.text(myHelper.formatLogCommand(firstBranch, secondBranch)).bold().code())) .wrapWithHtmlBody().toString(); }