A use case I have also is the creation of a switch case from a list of enums

Nice one!