@Override
    protected void replace(int startOffset, @NotNull SegmentArrayWithData data, int len) {
      super.replace(startOffset, data, len);
      for (int i = startOffset; i < startOffset + len; i++) {
        updateMappingForToken(i);
      }
    }
@Override
    protected void replace(int startOffset, @NotNull SegmentArrayWithData data, int len)