I didn't even know about EnumSet! Works for me.