def star_resource_statements(self):
        """
        Find statements with a resources that is a * or has a * in it.
        """

        star_resources = []
        for statement in self.statements:
            if not statement.resource:
                continue
            if statement.resource == "*" or (isinstance(statement.resource, list) and "*" in statement.resource):
                star_resources.append(statement)
        return star_resources
def star_resource_statements ( self ) : star_resources = [ ] for statement in self . statements : if not statement . resource : continue if statement . resource == "*" or ( isinstance ( statement . resource , list ) and "*" in statement . resource ) : star_resources . append ( statement ) return star_resources
Find statements with a resources that is a * or has a * in it.