It's because you don't have the generic type `K` defined anywhere in this class.