presto-matching/src/main/java/io/prestosql/matching/DefaultPrinter.java/DefaultPrinter/visitCapture
class DefaultPrinter:    @Override
    public void visitCapture(CapturePattern<?> pattern)
    {
        visitPrevious(pattern);
        appendLine("capturedAs(%s)", pattern.capture().description());
    }