In IDEA there is strange language called UAST, which can be applied to Java, Kotlin etc.
https://github.com/bblfsh/documentation/