AnnotationVisitor (String desc, boolean visible) { AnnotationVisitor av = mv.visitAnnotation(desc, visible); if (isStringType(myReturnType)) { String annotationClassName = Type.getType(desc).getClassName(); String pattern = myInstrumenter.getAnnotationPattern(annotationClassName); if (pattern != null) { String shortName = annotationClassName.substring(annotationClassName.lastIndexOf('.') + 1); myMethodPattern = new PatternValue(-1, shortName, pattern); if (Strings.areSameInstance(pattern, PatternInstrumenter.NULL_PATTERN)) { return new MyAnnotationVisitor(av, myMethodPattern); } } } return av; }