import java.util.List; class Foo implements Bar { methW } interface Bar { void methodWithTypeParam(K k); void methodWithGenerics(List k); }