public boolean contains(Object o) {
        if (!(o instanceof Entry<?> e)) return false;
        Object r = map.get(e.getKey());
        if (r == null) return false;
        Object v = e.getValue();
        return v == r || v.equals(r);
      }
public boolean contains(Object o)