void (final Url url, final String comment, final Project project) { final Ref<Exception> exception = new Ref<>(); Runnable command = () -> { ProgressIndicator progress = ProgressManager.getInstance().getProgressIndicator(); if (progress != null) { progress.setText(message("progress.text.browser.creating", url.toString())); } SvnVcs vcs = SvnVcs.getInstance(project); Target target = Target.on(url); try { vcs.getFactoryFromSettings().createBrowseClient().createDirectory(target, comment, false); } catch (VcsException e) { exception.set(e); } }; ProgressManager.getInstance() .runProcessWithProgressSynchronously(command, message("progress.text.create.remote.folder"), false, project); if (!exception.isNull()) { showErrorDialog(exception.get().getMessage(), message("dialog.title.error")); } }