private function iterate(InputInterface $input, array $map): \Generator
    {
        $values = $input->getValue($map[self::ITERATE_SOURCE], $map[self::ITERATE_ORIGIN]);
        if (empty($values) || !is_array($values)) {
            return [];
        }

        foreach (array_keys($values) as $key) {
            yield $key => $map[self::ORIGIN] . '.' . $key;
        }
    }