As spotted by @nosan https://github.com/spring-projects/spring-boot/pull/43201#issuecomment-2598926279

Comment From: snicoll

It could be constrained to the interface as well.