private function setAllowedValues(OptionsResolver $optionsResolver)
 {
     $optionsResolver->setAllowedValues(self::NAME, function (array $standards) {
         $standards = ValueNormalizer::normalizeCommaSeparatedValues($standards);
         $availableStandards = $this->standardFinder->getStandards();
         foreach ($standards as $standardName) {
             if (!array_key_exists($standardName, $availableStandards)) {
                 throw new StandardNotFoundException(sprintf('Standard "%s" is not supported. Pick one of: %s.', $standardName, implode(array_keys($availableStandards), ', ')));
             }
         }
         return true;
     });
 }
 private function setNormalizer(OptionsResolver $optionsResolver)
 {
     $optionsResolver->setNormalizer(self::NAME, function (OptionsResolver $optionsResolver, array $sniffCodes) {
         return ValueNormalizer::normalizeCommaSeparatedValues($sniffCodes);
     });
 }