@Override
    public void visit(VariableDeclarator n, Void arg) {
        out.println("VariableDeclarator: " + (extended ? n
                : n.getNameAsString() + " of type " + n.getType() + " init " + n.getInitializer().orElse(null)));
        super.visit(n, arg);

    }
This is a little hand cranked, perhaps hacked together util to take a Java
file and dump a trace of where the visitor goes. Helpful for debugging and
getting an idea on how to manipulate the AST.
jctools-build/src/main/java/org/jctools/queues/atomic/TraceVisitor.java