void () { myFixture.configureByText("a.java", """ public class A { void m(java.util.List<String> list, B<String> b) { b.<caret>foo(list); } } class B<T> { } """); doAction("Create method 'foo' in 'B'"); myFixture.checkResult(""" import java.util.List; public class A { void m(java.util.List<String> list, B<String> b) { b.foo(list); } } class B<T> { public void foo(List<T> list) { <caret> } } """); }