presto-matching/src/main/java/io/prestosql/matching/Pattern.java/Pattern/matches
class Pattern:    public <C> boolean matches(Object object, C context)
    {
        return match(object, context)
                .findFirst()
                .isPresent();
    }