private static boolean unloadDescriptorById(@NotNull PluginId pluginId) {
    IdeaPluginDescriptorImpl descriptor = PluginManagerCore.findPlugin(pluginId);
    return descriptor != null &&
           DynamicPlugins.allowLoadUnloadWithoutRestart(descriptor) &&
           DynamicPlugins.INSTANCE.unloadPlugin(descriptor,
                                                new DynamicPlugins.UnloadPluginOptions()
                                                  .withDisable(false)
                                                  .withUpdate(true)
                                                  .withWaitForClassloaderUnload(true));
  }
private static boolean unloadDescriptorById(@NotNull PluginId pluginId)