See https://github.com/spring-projects/spring-boot/pull/45554 It would be nice if basic things such as unused imports and the like were enabled.