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