public static void setHtml(@NotNull JEditorPane editorPane,
                             @NotNull @Nls String bodyInnerHtml,
                             @Nullable Color foregroundColor) {
    editorPane.setText(buildHtml(
      UIUtil.getCssFontDeclaration(editorPane.getFont(), foregroundColor, JBUI.CurrentTheme.Link.Foreground.ENABLED, null),
      bodyInnerHtml
    ));
  }
public static void setHtml(@NotNull JEditorPane editorPane,
                             @NotNull @Nls String bodyInnerHtml,
                             @Nullable Color foregroundColor)