code: 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;
      }
docs: @param array $data
  
  @return Collection