@Contract(pure = true)
  public boolean intersects(@NotNull Segment textRange) {
    return intersects(textRange.getStartOffset(), textRange.getEndOffset());
  }
@Contract(pure = true)
  public boolean intersects(@NotNull Segment textRange)