import java.util.List; import java.util.Set; class X { } interface Foo { X> foo(List> a, X> b); } class SamTest { static void test(Foo foo) { } }