public void clearHyperlinks() {
    // TODO replace with `clearHyperlinks(0, myEditor.getDocument().getTextLength())`
    for (RangeHighlighter highlighter : getHyperlinks(0, myEditor.getDocument().getTextLength(), myEditor)) {
      removeHyperlink(highlighter);
    }
  }
public void clearHyperlinks()