@Override
  public boolean equals(Object obj) {
    if (obj == this) return true;
    if (!(obj instanceof HighlightInfo info)) return false;

    return info.startOffset == startOffset &&
           info.endOffset == endOffset &&
           attributesEqual(info);
  }
@Override
  public boolean equals(Object obj)