<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_forbidden_statuses(self, statuses):
 """Set all forbidden status values :param statuses: a list with forbidden status values :type statuses: list :returns: None :rtype: None :raises: None """

        if self._forbidden_status == statuses:
            return
        self._forbidden_status = statuses
        self.invalidateFilter()