public function parse(array $data): Collection
    {
        $list = new Collection();

        foreach ($data as $name => $config) {
            $definition = new Definition();
            $definition->assign($config);
            $definition->validate();

            $list->put($name, $definition);
        }

        return $list;
    }
public function parse(array $data): Collection
    {
        $list = new Collection();

        foreach ($data as $name => $config) {
            $definition = new Definition();
            $definition->assign($config);
            $definition->validate();

            $list->put($name, $definition);
        }

        return $list;
    }
@param array $data

@return Collection