code: public function getDeclarationsFromTokens(Tokens $tokens)
      {
          $tokenAnalyzer = new TokensAnalyzer($tokens);
          $useIndexes = $tokenAnalyzer->getImportUseIndexes();
  
          return $this->getDeclarations($tokens, $useIndexes);
      }
docs: @param Tokens $tokens
  
  @return NamespaceUseAnalysis[]