def _iter(self) -> Generator:
        """
        Iterates all actions in a tree
        :return: generator yielding from own actions and nested groups
        :rtype: Generator
        """
        for group in self._nested_groups:
            yield from group._iter()
        yield from self.actions

        Iterates all actions in a tree
        :return: generator yielding from own actions and nested groups
        :rtype: Generator
        
ormar/queryset/clause.py