private void customizeLinksStyle() {
    Document document = getDocument();
    if (document instanceof HTMLDocument) {
      StyleSheet styleSheet = ((HTMLDocument)document).getStyleSheet();
      String linkColor = "#" + ColorUtil.toHex(JBUI.CurrentTheme.Link.Foreground.ENABLED); // NON-NLS
      styleSheet.addRule("a { color: " + linkColor + "; text-decoration: none;}"); // NON-NLS
    }
  }
private void customizeLinksStyle()