@edvin: normally you don’t add imports manually, either in Java or in Kotlin plugin code. instead, you generate fully qualified names and then invoke the Shorten References operation (in Kotlin it’s the
ShortenReferences
class). it takes care of a lot of stuff that you’d otherwise need to do by yourself