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