@Override
  public boolean equals(Object o) {
    if (!(o instanceof DocumentWindowImpl window)) return false;
    return myDelegate.equals(window.getDelegate()) && areRangesEqual(window);
  }
@Override
  public boolean equals(Object o)