anchor.diff:  }
   ''');
       var invocation = findNode.methodInvocation('a?.foo()');
  -    assertElement(invocation, findElement.method('foo', of: 'E'));
  -    assertInvokeType(invocation, 'void Function()');
  +    assertResolvedNodeText(invocation, r'''
  +MethodInvocation
  +  target: SimpleIdentifier
  +    token: a
  +    staticElement: a@47
  +    staticType: int?
  +  operator: ?.
  +  methodName: SimpleIdentifier
  +    token: foo
  +    staticElement: self::@extension::E::@method::foo
  +    staticType: void Function()
  +  argumentList: ArgumentList
  +    leftParenthesis: (
  +    rightParenthesis: )
  +  staticInvokeType: void Function()
  +  staticType: void
  +''');
     }
   
     test_instance_method_fromInstance_nullLiteral() async {
  
positive.code: }
  ''');
      var expression = findNode.prefix('-a');
      assertElement(expression, findElement.method('unary-'));
      assertType(expression, 'A?');
    }
  
    test_instance_setter_fromInstance_nullable() async {
  
negative.code: }
  ''');
      var invocation = findNode.functionExpressionInvocation('1(2)');
      if (isNullSafetyEnabled) {
        assertResolvedNodeText(invocation, r'''
  FunctionExpressionInvocation
    function: IntegerLiteral
      literal: 1
      staticType: int
    argumentList: ArgumentList
      leftParenthesis: (
      arguments
        IntegerLiteral
          literal: 2
          staticType: int
      rightParenthesis: )
    staticElement: self::@extension::E::@method::call
    staticInvokeType: int Function(int)
    staticType: int
  ''');
      } else {
        assertResolvedNodeText(invocation, r'''
  FunctionExpressionInvocation
    function: IntegerLiteral
      literal: 1
      staticType: int*
    argumentList: ArgumentList
      leftParenthesis: (
      arguments
        IntegerLiteral
          literal: 2
          staticType: int*
      rightParenthesis: )
    staticElement: self::@extension::E::@method::call
    staticInvokeType: int* Function(int*)*
    staticType: int*
  ''');
      }
    }
  
    test_instance_compoundAssignment_fromExtendedType() async {
  