code: private function isExtendingOrImplementing(Tokens $tokens, $classIndex, $classOpenIndex)
      {
          for ($index = $classIndex; $index < $classOpenIndex; ++$index) {
              if ($tokens[$index]->isGivenKind([T_EXTENDS, T_IMPLEMENTS])) {
                  return true;
              }
          }
  
          return false;
      }
docs: @param Tokens $tokens
  @param int    $classIndex
  @param int    $classOpenIndex
  
  @return bool