orangy
when
and otherwise constraint hierarchies. An example could be composite pattern, where sealed Node class can be either final CompositeNode or open LeafNode. So that user can’t change structure and processing rules, but can add leaf nodes at will.