def clear(self):
        super(GroupedRequirements, self).clear()
        self.create_default_groups()
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""