private static @Nullable PluginNode toPluginNode(@NotNull IdeaPluginDescriptor descriptor, @NotNull ProgressIndicator indicator) {
          if (descriptor instanceof PluginNode pluginNode) {
            return pluginNode.detailsLoaded() ?
                   pluginNode :
                   MarketplaceRequests.getInstance().loadPluginDetails(pluginNode, indicator);
          }
          else {
            PluginNode pluginNode = new PluginNode(descriptor.getPluginId(),
                                                   descriptor.getName(),
                                                   "-1");
            pluginNode.setDependencies(descriptor.getDependencies());
            pluginNode.setRepositoryName(PluginInstaller.UNKNOWN_HOST_MARKER);
            return pluginNode;
          }
        }
private static @Nullable PluginNode toPluginNode(@NotNull IdeaPluginDescriptor descriptor, @NotNull ProgressIndicator indicator)