def normalize(self):
        required, optional = (q.normalize() for q in self.subqueries)
        if required is NullQuery:
            return NullQuery
        if optional is NullQuery:
            return required
        return AndMaybe(required, optional, boost=self.boost)
dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py/AndMaybe.normalize/original