def METHOD_NAME(self, func):
    """Applies a filter on all ignored items, and remove all matches where func(first,second)
    doesn't return True.
    """
    filtered = IgnoreList()
    for first, second in self:
        if func(first, second):
            filtered.ignore(first, second)
    self._ignored = filtered._ignored
    self._count = filtered._count