code: private function isNeighbourAccepted(Tokens $tokens, $index)
      {
          static $forbiddenTokens = [
              T_AS,
              T_CLASS,
              T_CONST,
              T_EXTENDS,
              T_IMPLEMENTS,
              T_INSTANCEOF,
              T_INSTEADOF,
              T_INTERFACE,
              T_NEW,
              T_NS_SEPARATOR,
              T_OBJECT_OPERATOR,
              T_PAAMAYIM_NEKUDOTAYIM,
              T_TRAIT,
              T_USE,
              CT::T_USE_TRAIT,
              CT::T_USE_LAMBDA,
          ];
  
          $token = $tokens[$index];
  
          if ($token->equalsAny(['{', '}'])) {
              return false;
          }
  
          return !$token->isGivenKind($forbiddenTokens);
      }
docs: @param Tokens $tokens
  @param int    $index
  
  @return bool