@RequiresEdt
  static void installPluginFromCallbackData(@NotNull PluginInstallCallbackData callbackData,
                                            @Nullable Project project,
                                            @Nullable JComponent parentComponent) {
    IdeaPluginDescriptorImpl descriptor = callbackData.getPluginDescriptor();
    if (callbackData.getRestartNeeded()) {
      shutdownOrRestartAppAfterInstall(descriptor);
    }
    else {
      boolean loaded = installAndLoadDynamicPlugin(callbackData.getFile(), descriptor);

      if (!loaded) {
        shutdownOrRestartAppAfterInstall(descriptor);
      }
    }
  }
@RequiresEdt
  static void installPluginFromCallbackData(@NotNull PluginInstallCallbackData callbackData,
                                            @Nullable Project project,
                                            @Nullable JComponent parentComponent)