String () { if (mySelection == null || mySelection.isEmpty()) { return ""; } boolean addRevisionInfo = mySelection.size() > 1; @Nls StringBuilder html = new StringBuilder(); for (TreeNodeOnVcsRevision revision : mySelection) { String message = revision.getRevision().getCommitMessage(); if (StringUtil.isEmpty(message)) continue; if (!html.isEmpty()) { html.append("<br/><br/>"); //NON-NLS } if (addRevisionInfo) { String revisionInfo = FileHistoryPanelImpl.getPresentableText(revision.getRevision(), false); html.append("<font color=\"").append(ColorUtil.toHtmlColor(JBColor.gray).substring(2)).append("\">") //NON-NLS .append(getHtmlWithFonts(revisionInfo)).append("</font><br/>"); //NON-NLS } html.append(getHtmlWithFonts(formatTextWithLinks(myProject, message))); } return html.toString(); }