private static void finishUpdate(@NotNull IdeaPluginDescriptor descriptor) {
    synchronized (ourLock) {
      if (!ourPrepared || ourAllUpdates == null) {
        return;
      }
      boolean removed = removeUpdate(descriptor.getPluginId());
      if (removed) {
        Integer countValue = getCount(getFilteredUpdateResult());
        for (PluginUpdatesService service : SERVICES) {
          service.runCountCallbacks(countValue);
        }
      }
    }
  }
private static void finishUpdate(@NotNull IdeaPluginDescriptor descriptor)