code: private static function getTokenKindsForNames(array $tokenNames)
      {
          $keywords = [];
          foreach ($tokenNames as $keywordName) {
              if (\defined($keywordName)) {
                  $keyword = \constant($keywordName);
                  $keywords[$keyword] = $keyword;
              }
          }
  
          return $keywords;
      }
docs: @param string[] $tokenNames
  
  @return array<int, int>