The javadoc for TestRuntimeHintsRegistrar says:

This API serves as a companion to the core RuntimeHintsRegistrar API. If you need to register global hints for testing support that are not specific to particular test classes, favor implementing RuntimeHintsRegistrar over this API.

Since we do not perform any operation on the testClass parameter, we should implement RuntimeHintsRegistrar instead.