private function createIdChunks(array $resourceIds): array
    {
        $chunks = [];
        $chunkId = -1;
        $resourceIds = \array_values($resourceIds);
        foreach ($resourceIds as $index => $resourceId) {
            if (0 === $index % 30) {
                ++$chunkId;
                $chunks[$chunkId] = [];
            }

            $chunks[$chunkId][] = $resourceId;
        }

        return $chunks;
    }