The asm Classvisitor expects its methods to be called in this order (from their JavaDoc):
A visitor to visit a Java class. The methods of this class must be called in the following order: visit [ visitSource ] [ visitModule ]
[ visitNestHost ]
[ visitOuterClass ] ( visitAnnotation | visitTypeAnnotation | visitAttribute )*
( visitNestMember | [ * visitPermittedSubclass ] | visitInnerClass | visitRecordComponent | visitField | visitMethod )* visitEnd
The asm Classvisitor expects its methods to be called in this order (from their JavaDoc):