Make $this-free hook methods static and migrate t() calls to $this->t()
### Problem/Motivation
Enhanced HookConvertRector to declare converted hook methods as static when they do not reference $this, and to rewrite global t() calls to $this->t() with StringTranslationTrait included in the generated class.
### Work items
- Commit(s): [f644895ba1](https://github.com/palantirnet/drupal-rector/commit/f644895ba1c7)
### Credit
- Implemented by: @bbrala
- Reported by: @larowlan
---
*Filed retroactively as part of the Drupal 12 rector coverage effort. Closed as fixed; credit to be applied to the contributors listed above.*
*AI was used extensively to build this change and to file this issue. See [Dries Buytaert: AI-generated Rector rules for Drupal](https://dri.es/ai-generated-rector-rules-for-drupal) and [Björn Brala: Drupal Rector rules are config, not code. Mostly.](https://www.linkedin.com/pulse/drupal-rector-rules-config-code-mostly-bj%C3%B6rn-brala-vfpwe/).*
issue