Use `PathVisitor` instead of `Visitor`.