def METHOD_NAME(self, resource_type):
    for resource_id in self[resource_type]:
        resource = self[resource_type][resource_id]
        if 'inline_policies' not in resource:
            continue
        for policy_id in resource['inline_policies']:
            policy = resource['inline_policies'][policy_id]
            self._parse_permissions(
                policy_id, policy['PolicyDocument'], 'inline_policies', resource_type, resource_id)