Why `switch()`? And not i.e.:
```php
if ($constraint instanceof Range && is_numeric($constraint->max)) {
    return new ValueGuess($constraint->max, Guess::HIGH_CONFIDENCE);
}