protected function registerConfig(string $id): Config
    {
        $definition = $this->definitions[$id] ?? [];
        $config = new Config($definition);

        return apply_filters(static::HOOK, $config, $definition, $id);
    }