Favorites object if the “type literals” List<String>.class and List<Integer>.class were legal and returned the same object reference. There is no entirely satisfactory workaround for this limitation.
So then what would you do if you wanted a kind of Favorites class where there could be lists? Create a wrapper class?