public static boolean isNeedUpdate(@NotNull IdeaPluginDescriptor descriptor) {
    PluginId pluginId = descriptor.getPluginId();
    synchronized (ourLock) {
      if (ourPrepared && ourAllUpdates != null) {
        final var filteredUpdates = getFilteredUpdateResult();
        assert filteredUpdates != null;
        return ContainerUtil.exists(filteredUpdates.getPluginUpdates().getAll(), d -> Objects.equals(d.getDescriptor().getPluginId(), pluginId));
      }
    }
    return InstalledPluginsState.getInstance().hasNewerVersion(pluginId);
  }
public static boolean isNeedUpdate(@NotNull IdeaPluginDescriptor descriptor)