JPA 4.0 introduces new annotations to declare queries and query options on the method level, mostly to cater for Jakarta Data repositories. It would make sense to support these as alternatives to @Query/@NativeQuery and @QueryHint.
RepositoryInformationSupport.isQueryAnnotationPresentOn() requires special consideration as @StaticQuery is not a Spring-managed annotation.