code: public OffsetGroup endReferenceOffsetsForContentOffset(CharOffset contentOffset) {
      return characterRegions().get(regionIndexContainingContentOffset(contentOffset))
          .endOffsetGroupForPosition(contentOffset);
    }
docs: Get the latest reference string offsets corresponding to the given content string offset.