import java.util.List; interface B { void foo(List x); } class D { void bar(B x, List y) { x.foo(y); } }