[TASK] Change injectMethods to annotations

Change injectMethods as already done in extbase
to inject annotations

Resolves: #52040
Releases: 6.2
Change-Id: I1e4ba873981c4692cc0b3d867bd3756934661a90
Reviewed-on: https://review.typo3.org/23865
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Markus Klein
Tested-by: Markus Klein