Cool, thanks a lot @gildor and @Eugenio. Nice article! Yeah, it's definitely a lot nicer to do this in Kotlin, and some extension methods might make it even easier. Yeah, I was also worried that it would be a much larger effort to make "KotlinPoet" than JavaPoet is because the language is already more complex than Java and new syntax comes much quicker.