code: private function getDocBlockIndex(Tokens $tokens, $index)
      {
          do {
              $index = $tokens->getPrevNonWhitespace($index);
          } while ($tokens[$index]->isGivenKind([T_PUBLIC, T_PROTECTED, T_PRIVATE, T_FINAL, T_ABSTRACT, T_COMMENT]));
  
          return $index;
      }
docs: @param Tokens $tokens
  @param int    $index
  
  @return int