void (final String url) { showInfoMessage(myProject, message("dialog.edit.http.proxies.settings.test.connection.settings.will.be.stored.text"), message("dialog.edit.http.proxies.settings.test.connection.settings.will.be.stored.title")); if (!applyImpl()) { return; } final Ref<Exception> excRef = new Ref<>(); final ProgressManager pm = ProgressManager.getInstance(); pm.runProcessWithProgressSynchronously(() -> { final ProgressIndicator pi = pm.getProgressIndicator(); if (pi != null) { pi.setText(message("progress.message.connecting.to.url", url)); } try { SvnVcs.getInstance(myProject).getInfo(SvnUtil.createUrl(url), Revision.HEAD); } catch (SvnBindException e) { excRef.set(e); } }, message("progress.title.test.connection"), true, myProject); if (!excRef.isNull()) { showErrorDialog(myProject, excRef.get().getMessage(), message("dialog.edit.http.proxies.settings.test.connection.error.title")); } else { showInfoMessage(myProject, message("dialog.edit.http.proxies.settings.test.connection.success.text"), message("dialog.edit.http.proxies.settings.test.connection.success.title")); } }