protected function buildFilterArray($blocks)
    {
        $filter   = [];
        $excluded = [];
        foreach ($blocks as $block) {
            $this->extractFilter($block, $filter, $excluded);
        }
        return ['paths' => $filter, 'excluded' => $excluded];
    }