This is a follow-on from #32304, the fix for which doesn't play nicely with IntelliJ IDEA. It left the generated classes in runtime scope which prevented the AOT-generated source files from depending on the generated classes at compile time and resulted in compilation problems in the IDE.