AnnotationVisitor (String annotationDescriptor, boolean visible) { for (TMHAssertionGenerator assertionGenerator : assertionGenerators) { if (assertionGenerator.isMyAnnotation(annotationDescriptor)) { return assertionGenerator.getAnnotationChecker(Opcodes.API_VERSION, () -> { annotatedMethods.put(methodKey, new InstrumentationInfo(assertionGenerator)); annotated = true; }); } } return super.visitAnnotation(annotationDescriptor, visible); }