@Override
  public int getOffsets(int @NotNull [] offsets, int index) {
    for (ReferenceData data : myReferenceDatas) {
      offsets[index++] = data.startOffset;
      offsets[index++] = data.endOffset;
    }
    return index;
  }
@Override
  public int getOffsets(int @NotNull [] offsets, int index)