public void setBody(@NotNull @Nls String text) {
    if (text.isEmpty()) {
      setText("");
    }
    else {
      @NlsSafe String cssFontDeclaration = UIUtil.getCssFontDeclaration(getBodyFont());
      setText(new HtmlBuilder()
                .append(HtmlChunk.raw(cssFontDeclaration).wrapWith("head"))
                .append(HtmlChunk.raw(text).wrapWith(HtmlChunk.body()))
                .wrapWith(HtmlChunk.html()).toString());
    }
  }
public void setBody(@NotNull @Nls String text)