import java.io.*; import java.util.*; abstract class C { Iterator> bar(List x, Set y) { return foo(x, y).iterator(); } abstract T foo(T x, T y); }