Use a set instead of a list to check membership in an Enum field