private static @Nls String createWarningHtmlText(@Nullable @Nls String htmlBody) {
    if (htmlBody == null)
      return null;

    return new HtmlBuilder()
      .append(HtmlChunk.head().child(HtmlChunk.styleTag(
        "a, a:link {color:#" + ColorUtil.toHex(JBUI.CurrentTheme.Link.Foreground.ENABLED) + ";}\n" +
        "a:visited {color:#" + ColorUtil.toHex(JBUI.CurrentTheme.Link.Foreground.VISITED) + ";}\n" +
        "a:hover {color:#" + ColorUtil.toHex(JBUI.CurrentTheme.Link.Foreground.HOVERED) + ";}\n" +
        "a:active {color:#" + ColorUtil.toHex(JBUI.CurrentTheme.Link.Foreground.PRESSED) + ";}\n")))
      .append(HtmlChunk.body().child(HtmlChunk.div().addRaw(htmlBody)))
      .wrapWith("html")
      .toString();
  }
private static @Nls String createWarningHtmlText(@Nullable @Nls String htmlBody)