protected function mergeAssets($method, $assetType, $type)
    {
        $assetsCollection = $this->getTemplate()->$method();
        if(null !== $assetsCollection) {
            // Collects the blocks when parsed
            $assetsCollection = clone($assetsCollection);
            $blocks = $this->pageBlocks->getBlocks();
            foreach ($blocks as $slotBlocks) {
                foreach ($slotBlocks as $block) {
                    $key = ucfirst($type) . ucfirst($assetType);
                    $key = substr($key, 0, - 1);
                    if (array_key_exists($key, $block)) {
                        $assetsCollection->addRange(explode(',', $block[$key]));
                    }
                }
            }

            return $assetsCollection;
        }
    }