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

    return size2D.equals(that.size2D);
  }
@Override
  public boolean equals(Object obj)