anchor.diff:        // annotations, on one element or even on different elements in a library.
         for (final annotation in element.metadata) {
           if (annotation.element is! ConstructorElement) continue;
  -        final annotationClass = annotation.element!.enclosingElement!.name;
  +        final annotationClass = annotation.element!.enclosingElement2!.name;
           switch (annotationClass) {
             case 'GenerateMocks':
               mockTargets
  
positive.code:     final mockTargets = <_MockTarget>{};
  
      final possiblyAnnotatedElements = [
        ...entryLib.exports,
        ...entryLib.imports,
        ...entryLib.topLevelElements,
      ];
  
  
negative.code:     }
    }
  
    /// Adds a `Fake` implementation of [elementToFake], named [fakeName].
    void _addFakeClass(String fakeName, ClassElement elementToFake) {
      mockLibraryInfo.fakeClasses.add(Class((cBuilder) {
        // For each type parameter on [elementToFake], the Fake class needs a type
  