presto-matching/src/main/java/io/prestosql/matching/pattern/CapturePattern.java/CapturePattern/CapturePattern
class CapturePattern:    public CapturePattern(Capture<T> capture, Pattern<T> previous)
    {
        super(previous);
        this.capture = requireNonNull(capture, "capture is null");
    }