private function applyCollectedDqlConditions(array $group): void
    {
        if (!$this->dqlConditions) {
            return;
        }

        if ($group['conditionsLogic'] === 'AND') {
            $fieldsDql = $this->queryBuilder->expr()->andX(...$this->dqlConditions);
        } else {
            $fieldsDql = $this->queryBuilder->expr()->orX(...$this->dqlConditions);
        }

        if ($group['groupLogic'] === 'AND') {
            $this->queryBuilder->andWhere($fieldsDql);
        } else {
            $this->queryBuilder->orWhere($fieldsDql);
        }

        $this->dqlConditions = [];
    }