private function getMainLocationFilterCriteria(ParameterCollectionInterface $parameterCollection): ?Criterion
    {
        if ($parameterCollection->getParameter('only_main_locations')->getValue() !== true) {
            return null;
        }

        return new Criterion\Location\IsMainLocation(
            Criterion\Location\IsMainLocation::MAIN
        );
    }