Some of the errors found are covered by drupal-rector automation (thanks to Palantir.net funding), which should be used to speed up resolving them. Get the automated fix committed first and resolve the manual problems afterwards.
Results are from dataset #136 from 2022-06-26T14:32. Report is ran by the Drupal Association regularly.