Naive implementation for getting all states of a selection