protected function getInitializedIndexService(Site $site)
    {
        $indexService = GeneralUtility::makeInstance(IndexService::class, /** @scrutinizer ignore-type */ $site);
        $indexService->setContextTask($this);
        return $indexService;
    }
protected function getInitializedIndexService(Site $site)
    {
        $indexService = GeneralUtility::makeInstance(IndexService::class, /** @scrutinizer ignore-type */ $site);
        $indexService->setContextTask($this);
        return $indexService;
    }
protected function getInitializedIndexService ( Site $ site ) { $ indexService = GeneralUtility :: makeInstance ( IndexService :: class , /** @scrutinizer ignore-type */ $ site ) ; $ indexService -> setContextTask ( $ this ) ; return $ indexService ; }
Returns the initialize IndexService instance.

@param Site $site
@return IndexService
@internal param $Site
Returns the initialize IndexService instance .