<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_types(self, types):
 """Set all forbidden type values :param typees: a list with forbidden type values :type typees: list :returns: None :rtype: None :raises: None """

        if self._forbidden_types == types:
            return
        self._forbidden_types = types
        self.invalidateFilter()