Annotating static Java methods so Kotlin can pick them up as Extension functions of a type

That’s exactly what I’m after. My specific case is probably quite unique as I’m writing a java annotation processor, so I actually have to dynamically generate this kotlin file. I can’t quite get it to work though, I’ve just posted the question on stackoverflow: How to generate a kotlin file from an annotation processor? - Stack Overflow.