public boolean equals(Object configuration) {
    if (!(configuration instanceof Configuration other)) return false;
    return Objects.equals(category, other.category) && name.equals(other.name);
  }
public boolean equals(Object configuration)