Rewrite attribute storage to be more canonical and link what we can
API page: https://api.drupal.org/api/drupal/elements/10
The form element documentation for 10.3.x does not include any form elements except the component element.
Note the MR suffers from severe scope creep: solving this issue required rewriting attribute storage to be more in line with how annotations are stored otherwise the api_listing view could not pick these up. Once that was done, sneaking in one more reference was not a big deal so now the number of implementations and the list of implementations on function hook_foo now includes OOP hooks. It does not yet link from #[Hook('foo')] to hook_foo, that's a different issue (and one that is not quite trivial because #[Hook('form_form_test_alter_form_alter')] needs to link to form_FORM_ID_alter which will be a lot of fun.)
Note #2 the YAML export of the View created a lot of noise, suppressing whitespace in gitlab UI https://i.imgur.com/eBvQPz2.png or reviewing with git -w is strongly advised.
Related issue: Issue #3449634