String (@NotNull String html) { String body = UIUtil.getHtmlBody(html); List<String> parts = StringUtil.split(body, UIUtil.BORDER_LINE, true, false); if (parts.size() <= 1) return html; StringBuilder b = new StringBuilder(); for (String part : parts) { boolean addBorder = b.length() > 0; b.append("<div"); if (addBorder) { b.append(" style='margin-top:6; padding-top:6; border-top: thin solid #"); b.append(ColorUtil.toHex(UIUtil.getTooltipSeparatorColor())); b.append("'"); } b.append("'>").append(part).append("</div>"); } return XmlStringUtil.wrapInHtml(b.toString()); }