anchor.diff:  }
   ''');
     }
  +
  +  Future<void> test_inExtends_removed() async {
  +    setPackageContent('''
  +class A<S, T> {}
  +''');
  +    setPackageData(_add(0, components: ['A']));
  +    await resolveTestUnit('''
  +import '$importUri';
  +
  +class B extends A<int> {}
  +''');
  +    await assertHasFix('''
  +import '$importUri';
  +
  +class B extends A<String, int> {}
  +''');
  +  }
  +
  +  Future<void> test_inImplements_removed() async {
  +    setPackageContent('''
  +class A<S, T> {}
  +''');
  +    setPackageData(_add(0, components: ['A']));
  +    await resolveTestUnit('''
  +import '$importUri';
  +
  +class B implements A<int> {}
  +''');
  +    await assertHasFix('''
  +import '$importUri';
  +
  +class B implements A<String, int> {}
  +''');
  +  }
  +
  +  Future<void> test_inOn_removed() async {
  +    setPackageContent('''
  +class A<S, T> {}
  +''');
  +    setPackageData(_add(0, components: ['A']));
  +    await resolveTestUnit('''
  +import '$importUri';
  +
  +extension E on A<int> {}
  +''');
  +    await assertHasFix('''
  +import '$importUri';
  +
  +extension E on A<String, int> {}
  +''');
  +  }
  +
  +  Future<void> test_inTypeAnnotation_removed() async {
  +    setPackageContent('''
  +class C<S, T> {}
  +''');
  +    setPackageData(_add(0, components: ['C']));
  +    await resolveTestUnit('''
  +import '$importUri';
  +
  +void f(C<int> c) {}
  +''');
  +    await assertHasFix('''
  +import '$importUri';
  +
  +void f(C<String, int> c) {}
  +''');
  +  }
  +
  +  Future<void> test_inWith_removed() async {
  +    setPackageContent('''
  +class A<S, T> {}
  +''');
  +    setPackageData(_add(0, components: ['A']));
  +    await resolveTestUnit('''
  +import '$importUri';
  +
  +class B with A<int> {}
  +''');
  +    await assertHasFix('''
  +import '$importUri';
  +
  +class B with A<String, int> {}
  +''');
  +  }
   }
   
   @reflectiveTest
   class AddTypeParameterToExtensionTest extends _AddTypeParameterChange {
  -  Future<void> test_extension_removed() async {
  +  Future<void> test_override_removed() async {
       setPackageContent('''
   class C {}
   extension E<S, T> on C {
  
positive.code: void main() {
    defineReflectiveSuite(() {
      defineReflectiveTests(AddTypeParameterToClassTest);
      defineReflectiveTests(AddTypeParameterToConstructorTest);
      defineReflectiveTests(AddTypeParameterToExtensionTest);
      defineReflectiveTests(AddTypeParameterToMethodTest);
    });
  }
  
  @reflectiveTest
  class AddTypeParameterToClassTest extends _AddTypeParameterChange {
    Future<void> test_class_removed() async {
      setPackageContent('''
  class C<S, T> {}
  ''');
      setPackageData(_add(0, components: ['C']));
      await resolveTestUnit('''
  import '$importUri';
  
  void f(C<int> c) {}
  ''');
      await assertHasFix('''
  import '$importUri';
  
  void f(C<String, int> c) {}
  ''');
    }
  }
  
  @reflectiveTest
  class AddTypeParameterToConstructorTest extends _AddTypeParameterChange {
    Future<void> test_constructor_removed() async {
      setPackageContent('''
  class C<S, T> {
    void C() {}
  
negative.code: ''');
    }
  
    Future<void> test_override_withoutBound_removed() async {
      setPackageContent('''
  class C {
    void m<T>() {}
  