private @Nullable PluginNode findPluginInRepo(@NotNull PluginId depPluginId) {
    PluginNode pluginFromCustomRepos = myCustomReposPlugins.stream()
      .parallel()
      .filter(p -> p.getPluginId().equals(depPluginId))
      .findAny()
      .orElse(null);

    PluginNode pluginFromMarketplace = MarketplaceRequests.getInstance()
      .getLastCompatiblePluginUpdate(depPluginId);

    boolean fromCustomRepos = pluginFromMarketplace == null ||
                              pluginFromCustomRepos != null &&
                              PluginDownloader.compareVersionsSkipBrokenAndIncompatible(pluginFromCustomRepos.getVersion(),
                                                                                        pluginFromMarketplace) > 0;
    return fromCustomRepos ? pluginFromCustomRepos : pluginFromMarketplace;
  }
private @Nullable PluginNode findPluginInRepo(@NotNull PluginId depPluginId)