import java.util.Collection; import java.util.List; interface A { & List> void foo(S x); String foo(S x); } class B { public static void main(String[] args) { A a = null; char c = a.foo(null).charAt(0); } }