anchor.diff:            final method = parameter.enclosingElement3!;
             throw InvalidMockitoAnnotationException(
                 'Mockito cannot generate a valid override for method '
  -              "'${mockTarget.classElement.displayName}.${method.displayName}'; "
  +              "'${mockTarget.interfaceElement.displayName}.${method.displayName}'; "
                 "parameter '${parameter.displayName}' causes a problem: "
                 '${e.message}');
           }
  
positive.code:   ///   and no corresponding dummy generator. Mockito cannot generate its own
    ///   dummy return values for unknown types.
    void _checkMethodsToStubAreValid(_MockTarget mockTarget) {
      final classElement = mockTarget.classElement;
      final className = classElement.name;
      final substitution = Substitution.fromInterfaceType(mockTarget.classType);
      final relevantMembers = _inheritanceManager
          .getInterface(classElement)
          .map
          .values
          .where((m) => !m.isPrivate && !m.isStatic)
  
negative.code:             (mBuilder) => _buildOverridingMethod(mBuilder, toStringMethod)));
        }
      }));
      mockLibraryInfo.fakedInterfaceElements.add(elementToFake);
    }
  
    /// Returns a [Parameter] which matches [parameter].
  