code: private function registerFoundToken($token)
      {
          // inlined extractTokenKind() call on the hot path
          $tokenKind = $token instanceof Token
              ? ($token->isArray() ? $token->getId() : $token->getContent())
              : (\is_array($token) ? $token[0] : $token)
          ;
  
          if (!isset($this->foundTokenKinds[$tokenKind])) {
              $this->foundTokenKinds[$tokenKind] = 0;
          }
  
          ++$this->foundTokenKinds[$tokenKind];
      }
docs: Register token as found.
  
  @param array|string|Token $token token prototype