@Override
    public void visit(EnumDeclaration n, Void arg) {
        out.println("EnumDeclaration: " + (extended ? n : ""));
        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