@ApiStatus.OverrideOnly
  public void downloadPlugins(@NotNull List<PluginNode> plugins,
                              @NotNull Collection<PluginNode> customPlugins,
                              @Nullable Runnable onSuccess,
                              @NotNull ModalityState modalityState,
                              @Nullable Consumer<Boolean> function) throws IOException {
    PluginManagerMain.downloadPlugins(plugins, customPlugins, true, onSuccess, PluginEnabler.HEADLESS, modalityState, function);
  }
@ApiStatus.OverrideOnly
  public void downloadPlugins(@NotNull List<PluginNode> plugins,
                              @NotNull Collection<PluginNode> customPlugins,
                              @Nullable Runnable onSuccess,
                              @NotNull ModalityState modalityState,
                              @Nullable Consumer<Boolean> function)