anchor.diff:  }
   ''');
       var access = findNode.propertyAccess('this.a');
  -    assertPropertyAccess(access, findElement.getter('a', of: 'C'), 'int');
  +    if (isNullSafetyEnabled) {
  +      assertResolvedNodeText(access, r'''
  +PropertyAccess
  +  target: ThisExpression
  +    thisKeyword: this
  +    staticType: C
  +  operator: .
  +  propertyName: SimpleIdentifier
  +    token: a
  +    staticElement: self::@class::C::@getter::a
  +    staticType: int
  +  staticType: int
  +''');
  +    } else {
  +      assertResolvedNodeText(access, r'''
  +PropertyAccess
  +  target: ThisExpression
  +    thisKeyword: this
  +    staticType: C*
  +  operator: .
  +  propertyName: SimpleIdentifier
  +    token: a
  +    staticElement: self::@class::C::@getter::a
  +    staticType: int*
  +  staticType: int*
  +''');
  +    }
     }
   
     test_instance_getter_fromThis_fromExtension() async {
  
positive.code: }
  ''');
      var identifier = findNode.simple('a;');
      assertElement(identifier, findElement.method('a'));
      assertType(identifier, 'void Function(int)');
    }
  
    test_static_tearoff_fromStatic() async {
  
negative.code: }
  ''');
      var access = findNode.prefixed('c.a');
      assertResolvedNodeText(access, r'''
  PrefixedIdentifier
    prefix: SimpleIdentifier
      token: c
      staticElement: c@35
      staticType: C*
    period: .
    identifier: SimpleIdentifier
      token: a
      staticElement: package:test/lib.dart::@extension::E::@getter::a
      staticType: int*
    staticElement: package:test/lib.dart::@extension::E::@getter::a
    staticType: int*
  ''');
    }
  
    test_visibility_shadowed_byImport() async {
  