public static boolean downloadPluginsModal(@NotNull List<PluginNode> plugins,
                                             @NotNull Collection<PluginNode> customPlugins,
                                             boolean allowInstallWithoutRestart,
                                             @Nullable Runnable onSuccess,
                                             @NotNull com.intellij.ide.plugins.PluginEnabler pluginEnabler,
                                             @NotNull ModalityState modalityState,
                                             @Nullable Consumer<Boolean> function) throws IOException {
    return downloadPluginsImpl(plugins, customPlugins, allowInstallWithoutRestart, onSuccess, pluginEnabler, function, modalityState, false);
  }
public static boolean downloadPluginsModal(@NotNull List<PluginNode> plugins,
                                             @NotNull Collection<PluginNode> customPlugins,
                                             boolean allowInstallWithoutRestart,
                                             @Nullable Runnable onSuccess,
                                             @NotNull com.intellij.ide.plugins.PluginEnabler pluginEnabler,
                                             @NotNull ModalityState modalityState,
                                             @Nullable Consumer<Boolean> function)