It's what the inlined variant already does. Synchronise with it.
my @methods = @{ $args{methods} };
$args{constraint} = sub {
my $val = $_[0];
- blessed($val) ne 'Regexp'
+ blessed($val) && blessed($val) ne 'Regexp'
&& all { $val->can($_) } @methods;
};