public static @NotNull @Nls String buildHtml(@NotNull @Nls String headInnerHtml, @NotNull @Nls String bodyInnerHtml) {
    if (bodyInnerHtml.contains("<html>")) {
      bodyInnerHtml = UIUtil.getHtmlBody(bodyInnerHtml);
    }
    return HtmlChunk.html().children(
      HtmlChunk.head().addRaw(headInnerHtml),
      HtmlChunk.body().addRaw(bodyInnerHtml)
    ).toString();
  }
public static @NotNull @Nls String buildHtml(@NotNull @Nls String headInnerHtml, @NotNull @Nls String bodyInnerHtml)