@Override
  public @NotNull CharSequence intern(@NotNull CharSequence baseText, int startOffset, int endOffset) {
    return endOffset - startOffset > INTERN_THRESHOLD ? substring(baseText, startOffset, endOffset)
                                                      : doIntern(baseText, startOffset, endOffset);
  }
@Override
  public @NotNull CharSequence intern(@NotNull CharSequence baseText, int startOffset, int endOffset)