Opening tabs in the Plugin Settings dialog

I am trying to make it easy for a user to install/enable a related plugin from a link UI created from another plugin. I would prefer to go through the Plugin Settings dialog so as not to duplicate UI and also to ensure that the user goes through the normal channels in Marketplace to do the install. The following code does basically what I want:

ShowSettingsUtil.getInstance().showSettingsDialog(
project, PluginManagerConfigurable.class,
c → c.openInstalledTab(PLUGIN_ID));

However, the PluginManagerConfigurable is marked Internal API and the specific method call on openInstalledTab is marked as version 222 level API (less of a problem but possibly too new for my compatibility level). Is there an alternative way to do this without using Internal API?

I have found:

ShowSettingsUtil.getInstance().showSettingsDialog(project, “Plugins”)

Which gets me part of the way but is less ideal.

Thanks,

Cameron

Use PluginsAdvertiser#installAndEnable(Project, Set<com.intellij.openapi.extensions.PluginId>, boolean, boolean, ModalityState, Runnable)

Basically you only need:

installAndEnable(project, listOf(PluginId.getId("myplugin"))) { }

Many plugins use it, it is public API