Spring AOT fails if the return type of a `@Bean` is private. I think it's worth adding an ArchRule to handle such cases. For background, see https://github.com/spring-projects/spring-boot/pull/46675#issuecomment-3162970022