presto-matching/src/main/java/io/prestosql/matching/Property.java/Property/capturedAs
class Property:    public PropertyPattern<F, C, T> capturedAs(Capture<T> capture)
    {
        Pattern<T> matchAll = (Pattern<T>) Pattern.any();
        return matching(matchAll.capturedAs(capture));
    }