public function applyFilters(QueryBuilder $queryBuilder, $alias, FilterBagInterface $filterBag = null)
    {
        if (is_null($filterBag)) {
            return $queryBuilder;
        }

        foreach ($filterBag->all() as $filter) {
            if ($filter instanceof FilterNode) {
                $this->applyFilter($queryBuilder, $alias, $filter);
            }
        }

        return $queryBuilder;
    }