anchor.diff:      var errorMessages = <String>[];
       for (var typeArgument in typeArguments) {
         if (typeArgument is analyzer.InterfaceType) {
  -        if (typeArgument.element.isPrivate) {
  +        if (typeArgument.element2.isPrivate) {
             errorMessages.add(
                 '${enclosingElement.fullName} features a private type argument, '
                 'and cannot be stubbed.');
  
positive.code: 
        var preexistingMock = classesInEntryLib.firstWhereOrNull((c) =>
            c.interfaces
                .map((type) => type.element)
                .contains(mockTarget.classElement) &&
            _isMockClass(c.supertype!));
        if (preexistingMock != null) {
  
negative.code:         // We can create this invocation by referring to a const field or
          // top-level variable.
          return referImported(
              revivable.accessor, _typeImport(object.type!.element2));
        }
  
        final name = revivable.source.fragment;
  