Creates case clauses within a pattern match for each possible subclass of a sealed type, or for each member of a Java enumeration.