code: private function getDeclarations(Tokens $tokens, array $useIndexes)
      {
          $uses = [];
  
          foreach ($useIndexes as $index) {
              $endIndex = $tokens->getNextTokenOfKind($index, [';', [T_CLOSE_TAG]]);
              $analysis = $this->parseDeclaration($tokens, $index, $endIndex);
              if ($analysis) {
                  $uses[] = $analysis;
              }
          }
  
          return $uses;
      }
docs: @param Tokens $tokens
  @param array  $useIndexes
  
  @return NamespaceUseAnalysis[]