@Contract(pure = true)
  public static @NotNull TextRange create(@NotNull Segment segment) {
    return create(segment.getStartOffset(), segment.getEndOffset());
  }
@Contract(pure = true)
  public static @NotNull TextRange create(@NotNull Segment segment)