protected static @NotNull TextRange subRange(@NotNull TextRange range, int start, int end) {
    return TextRange.from(range.getStartOffset() + start, end - start);
  }
protected static @NotNull TextRange subRange(@NotNull TextRange range, int start, int end)