See https://github.com/spring-projects/spring-boot/pull/28563. Currently ImportsContextCustomizer does not allow a user to mark a custom annotation as ignored. It would be nice if a hook point was available so that they could.