@Contract(pure = true)
  public boolean contains(@NotNull Segment segment) {
    return containsRange(segment.getStartOffset(), segment.getEndOffset());
  }
@Contract(pure = true)
  public boolean contains(@NotNull Segment segment)