Hi!
Regarding the K1/K2 compiler APIs difference, you can consult this guide:
https://kotlin.github.io/analysis-api/migrating-from-k1.html
There is a catch, however: at the moment, you would not be able to fully enable your IDE plugin with K2 Mode even if you make it fully compatible with it. Currently our team is in the process of preparing clear migration mechanisms for 3rd party plugins authors, but it is a WIP
We’ll probably do some announcements here (in the public Kotlin Slack) when we have some news on that matter
Meanwhile, you can see the guide above and understand how much you would need to change the code of your plugin to make it compatible with K2 Mode 🙏