def _make_allowed_states(self) -> Iterator[Text]:
for trans in self.transitions:<EOL><INDENT>yield trans.dest.name()<EOL>if trans.origin:<EOL><INDENT>yield trans.origin.name()<EOL><DEDENT><DEDENT>
Sometimes we load states from the database. In order to avoid loading
an arbitrary class, we list here the state classes that are allowed.