I have a plugin, which can fail during initialization (say, when Project SDK is not set). I want to show an error message to user and disable the plugin for the current session only.
The idea is that the user will configure the Project SDK and restart IDEA, then the plugin can initialize properly.
I see PluginManager.disablePlugin() will disable it permanently.
The reason why I want to disable the plugin in the first place is that we have a language parser and other stuff there, which would throw NPEs if not properly initialized.