public void setTextWithHyperlink(@NotNull @LinkLabel String text) {
    int startTagOffset = text.indexOf(startTag);
    if (startTagOffset == -1){
      LOG.error("Text \"" + text + "\" doesn't contain <hyperlink> tag");
      return;
    }

    int finishTagOffset = text.indexOf(finishTag);
    if (finishTagOffset == -1) {
      LOG.error("Text \"" + text + "\" doesn't contain </hyperlink> tag");
      return;
    }

    String beforeLinkText = StringUtil.unescapeXmlEntities(text.substring(0, startTagOffset));
    String linkText = StringUtil.unescapeXmlEntities(text.substring(startTagOffset + startTag.length(), finishTagOffset));
    String afterLinkText = StringUtil.unescapeXmlEntities(text.substring(finishTagOffset + finishTag.length()));

    doSetHyperLinkText(beforeLinkText, linkText, afterLinkText);
  }
public void setTextWithHyperlink(@NotNull @LinkLabel String text)