code: public function isGivenKind($possibleKind)
      {
          return $this->isArray && (\is_array($possibleKind) ? \in_array($this->id, $possibleKind, true) : $this->id === $possibleKind);
      }
docs: Check if token is one of given kind.
  
  @param int|int[] $possibleKind kind or array of kinds
  
  @return bool