private function processFileWithoutFixer(File $file)
 {
     foreach ($file->getTokens() as $stackPointer => $token) {
         $this->sniffDispatcher->dispatch($token['code'], new CheckFileTokenEvent($file, $stackPointer));
     }
 }
 private function createAndRegisterSniffsToSniffDispatcher(array $standards, array $extraSniffs)
 {
     $sniffs = $this->sniffSetFactory->createFromStandardsAndSniffs($standards, $extraSniffs);
     $this->sniffDispatcher->addSniffListeners($sniffs);
 }