private static @NotNull Consumer<InternalPluginResults> adaptDescriptorConsumerToUpdateResultConsumer(
    @NotNull Consumer<? super Collection<IdeaPluginDescriptor>> consumer
  ) {
    return updateResult -> {
      if (updateResult == null) consumer.accept(null);
      else consumer.accept(ContainerUtil.map(updateResult.getPluginUpdates().getAll(), PluginDownloader::getDescriptor));
    };
  }
private static @NotNull Consumer<InternalPluginResults> adaptDescriptorConsumerToUpdateResultConsumer(
    @NotNull Consumer<? super Collection<IdeaPluginDescriptor>> consumer
  )