def _security_filters(requirements):
    """Produce set of filters associated with the security requirements."""
    result = set()
    for requirement in (requirements or []):
        scheme = getattr(requirement, 'scheme', None)
        if scheme:
            filter = getattr(scheme, 'filter', None)
            if filter:
                result.add(filter)
    return result
