In order to use generic traits with current versions of PHPStan, PHPDoc with @use must be added to trait imports (use).
AFAICS this generator is currently unable to define PHPDoc comments for trait imports.
FTR the feature was added to PHPStan here:
phpstan/phpstan-src@8766923