presto-matching/src/main/java/io/prestosql/matching/Captures.java/Captures/addAll
class Captures:    public Captures addAll(Captures other)
    {
        if (this == NIL) {
            return other;
        }
        else {
            return new Captures(capture, value, tail.addAll(other));
        }
    }