protected function getAvailableTheme(string $type): Collection
    {
        $themes = $this->foundation->make('orchestra.theme.finder')->detect();

        return $themes->filter(function ($manifest) use ($type) {
            if (! empty($manifest->type) && ! in_array($type, $manifest->type)) {
                return null;
            }

            return $manifest;
        });
    }