@Override
  public boolean remove(Object o) {
    if (o instanceof DistinctPair dp) {
      return myData.remove(createPair(dp.myFirst, dp.mySecond, dp.myOrdered));
    }
    return false;
  }
@Override
  public boolean remove(Object o)