Generate enums and collections of enums