def METHOD_NAME(filter_gen):
    _validator = hasValidFormula()
    def _wrapper(*args, **kwargs):
        _filter = filter_gen(*args, **kwargs)
        def _validating_filter(term):
            if not _validator(term):
                return False
            return _filter(term)
        return _validating_filter
    return _wrapper