public static function validateEnums(InputInterface $input, $domain, $types = [])
    {
        $ret = [];

        foreach ($types as $type) {
            $v = $input->getOption($type);
            if (null !== $v) {
                self::validateEnum($domain, $type, $v);
                $ret[$type] = $v;
            }
        }

        return $ret;
    }