presto-matching/src/main/java/io/prestosql/matching/PatternVisitor.java/PatternVisitor/visitPrevious
class PatternVisitor:    default void visitPrevious(Pattern<?> pattern)
    {
        Optional<Pattern<?>> previous = pattern.previous();
        if (previous.isPresent()) {
            previous.get().accept(this);
        }
    }