protected function executeValidation(InputInterface $input, OutputInterface $output)
    {
        $types = [];

        foreach ($this->getResolver()->getTypes() as $type) {
            $types[$type->getType()] = $type->getType();
        }

        $invalid = [];

        foreach ($input->getArgument('id') as $id) {
            if (!isset($types[$id])) {
                $invalid[] = $id;
            }
        }

        if ($invalid) {
            $text = sprintf('The content types "%s" do not exists', implode(', ', $invalid));

            if ($input->getOption('no-interaction')) {
                throw new InvalidArgumentException($text);
            }

            // ask the user if he/she want to continue or not.

            $output->writeln($text);

            if (!$this->getQuestion()->ask(
                $input,
                $output,
                new ConfirmationQuestion('Would you want to continue? [y/N] ', false)
            )) {
                return 1;
            }
        }

        return 0;
    }