@ Nonnull public BugInstance addClassAndMethod ( PreorderVisitor visitor ) { addClass ( visitor ) ; XMethod m = visitor . getXMethod ( ) ; addMethod ( visitor ) ; if ( ! MemberUtils . isUserGenerated ( m ) ) { foundInAutogeneratedMethod ( ) ; } return this ; }
Add a class annotation and a method annotation for the class and method which the given visitor is currently visiting .