@Override
      public void consume(Exception e) {
        ApplicationManager.getApplication().invokeLater(() -> Messages.showErrorDialog(
          IdeBundle.message("error.occurred.please.check.your.internet.connection"),
          IdeBundle.message("upgrade.package.failed.title")
        ), ModalityState.any());
      }
@Override
      public void consume(Exception e)