public function detect()
    {
        $components = [];
        $files      = $this->detectUiComponents();

        foreach ($files as $file) {
            $name   = $this->files->name($file);
            $params = $this->resolveUIComponentParams($name, $file);

            if (!$params) {
                continue;
            }

            $components[snake_case($name)] = $params;
        }

        return new Collection($components);
    }