@staticmethod
def _prepare_requirements(configs, requires_filters):
    """
        Overrides the filters specified in the decorator with the given ones

        :param configs: Field → (Requirement, key, allow_none) dictionary
        :param requires_filters: Content of the 'requires.filter' component
                                 property (field → string)
        :return: The new configuration dictionary
        """
    if not requires_filters or not isinstance(requires_filters, dict):
        return configs
    new_requirements = {}
    for field, config in configs.items():
        requirement, key, allow_none = config
        try:
            explicit_filter = requires_filters[field]
            requirement_copy = requirement.copy()
            requirement_copy.set_filter(explicit_filter)
            new_requirements[field] = requirement_copy, key, allow_none
        except (KeyError, TypeError, ValueError):
            new_requirements[field] = config
    return new_requirements
