public boolean equals(Object o) {
    if (!(o instanceof LogicalPosition logicalPosition)) return false;

    return column == logicalPosition.column && line == logicalPosition.line;
  }
public boolean equals(Object o)