the approach of compiling Kotlin to bytecode and then decompiling it to Java code is what
Kapt did. So it's possible, but someone would have to do the work. (And it would be a lot of work, not something to put together in 5min) Nowadays it would probably make more sense to build on
KSP to work with the Kotlin AST directly, instead of taking the slower, less precise route via compilation/decompilation (Disclaimer: I don't know what checkerframework does, so KSP might not be powerfull enough to suport it).