There's another thread about this topic here but with no accepted/sufficient answer. I am building a plugin targeted at Android Studio using IntelliJ Community Edition plugin development tools and I need to run and rebug the plugin in Android Studio. However when the run command is clicked in IntelliJ CE, it opens another instance of IntelliJ and opens the plugin in IntelliJ.
How can I change this configuration to run the plugin in Android Studio instead of IntelliJ? Upon researching, Android Studio plugins are developed using IntelliJ if I'm not mistaken (As mentioned here and here). There's no official guide addressing this. Any clarification and guides on getting this done?
EDIT
The duplicate thread does not solve the problem as it does not state a solution to run the plugin in Android Studio