Pidove sounds really awesome. I'm totally going to give that a try!

It has a sibling project which is still half-baked

https://github.com/paulhoule/ferocity

which is about developing a lispy DSL in which it is possible to write Java-in-Java to transform it to make syntactic macros. It's kinda crazy

https://github.com/paulhoule/ferocity/blob/main/ferocity0/sr...

and somebody might think it combines the worst of Java and Common LISP but I did enough work on it to be sure there were no major barriers. ferocity0 is a bootstrap implementation that it's possible to write a code generator that can generate code to make stubs for the standard library and write ferocity1 in ferocity0 and write ferocity2 in ferocity1 with the full power of code generation to hide the accidental complexity of Java... But other projects got in the way.

Looking at your examples, this looks like https://github.com/square/javapoet