getFeatureFlagChecker()->isEnabled(FeatureFlagCheckerInterface::FEATURE_FLAG_ADVANCED_SEARCH_DISABLED) && $this->getSearchService()->supportCustomIndex(); } private function getFeatureFlagChecker(): FeatureFlagCheckerInterface { return $this->getServiceLocator()->get(FeatureFlagChecker::class); } private function getSearchService(): SearchInterface { return $this->getServiceLocator()->get(SearchProxy::SERVICE_ID); } }