def METHOD_NAME(self):
    if not self.parent.is_aliased_class and not self.parent.is_root:
        for ent in self.parent.mapper.iterate_to_root():
            yield TokenRegistry(self.parent.parent[ent], self.token)
    else:
        yield self