public boolean equals(Object o) {
    if (this == o) return true;
    return o instanceof Constraint constraint && Objects.equals(myLeft, constraint.myLeft) && Objects.equals(myRight, constraint.myRight);
  }
public boolean equals(Object o)