void (@NlsContexts.LinkLabel String text) { if (BasicHTML.isHTMLString(getText())) { // if is currently showing string as html super.setText(underlineTextInHtml(text)); } else { super.setText(text); } myOriginalText = text; }