import java.util.*; public class A extends B { public void foo(List ls) { } }