protected function getAvailableTheme(string $type): Collection
    {
        $themes = $this->finder->detect();

        return $themes->filter(function (Manifest $manifest) use ($type) {
            $group = $manifest->get('type');

            if (! empty($group) && ! \in_array($type, $group)) {
                return;
            }

            return $manifest;
        });
    }