Draft: \Drupal\Tests\user\Traits\UserCreationTrait::createUser
make things more...
\Drupal\Tests\user\Traits\UserCreationTrait::createUser
make things more compatible with phpstan level 7