private @Nullable RangeHighlighter findLinkRangeAt(int offset) {
    Ref<RangeHighlighter> ref = Ref.create();
    processHyperlinksAndHighlightings(offset, offset, myEditor, true, false, range -> {
      ref.set(range);
      return false;
    });
    return ref.get();
  }
private @Nullable RangeHighlighter findLinkRangeAt(int offset)