code: def set_forbidden_statuses(self, statuses):
          
          if self._forbidden_status == statuses:
              return
          self._forbidden_status = statuses
          self.invalidateFilter()
docs: Set all forbidden status values
  
          :param statuses: a list with forbidden status values
          :type statuses: list
          :returns: None
          :rtype: None
          :raises: None