public static void configureHtmlEditorKit(@NotNull JEditorPane editorPane, boolean notificationColor) {
    HTMLEditorKit kit = new HTMLEditorKitBuilder().withWordWrapViewFactory().withFontResolver(new CSSFontResolver() {
      @Override
      public @NotNull Font getFont(@NotNull Font defaultFont, @NotNull AttributeSet attributeSet) {
        if ("a".equalsIgnoreCase(String.valueOf(attributeSet.getAttribute(AttributeSet.NameAttribute)))) {
          return UIUtil.getLabelFont();
        }
        return defaultFont;
      }
    }).build();
    String color = ColorUtil.toHtmlColor(notificationColor ? getLinkButtonForeground() : JBUI.CurrentTheme.Link.Foreground.ENABLED);
    kit.getStyleSheet().addRule("a {color: " + color + "}");
    editorPane.setEditorKit(kit);
  }
public static void configureHtmlEditorKit(@NotNull JEditorPane editorPane, boolean notificationColor)