import java.util.Collection; public class Implementation implements GenericInterface<Collection<?>>{ public Collection<?> doSomething(Class<? extends Collection<?>> type) { return null; } }