private static void scheduleUpdateCheck(PluginId pluginId) {
    var pluginDescriptor = PluginManagerCore.getPlugin(pluginId);
    if (pluginDescriptor != null && !pluginDescriptor.isBundled() && !ourPluginUpdateScheduled.getAndSet(true)) {
      var app = ApplicationManager.getApplication();
      app.executeOnPooledThread(() -> {
        if (!app.isExitInProgress() && !app.isDisposed() && UpdateSettings.getInstance().isPluginsCheckNeeded()) {
          UpdateChecker.updateAndShowResult();
        }
      });
    }
  }
private static void scheduleUpdateCheck(PluginId pluginId)