@Deprecated
  @NotNull
  Segment getVisitingTextRange() {
    RangeMarker visitingRange = this.visitingRange;
    return visitingRange != null && visitingRange.isValid() ? visitingRange : this;
  }
@Deprecated
  @NotNull
  Segment getVisitingTextRange()