void (@NotNull final WCInfo wcInfo, @NotNull final Collection<WorkingCopyFormat> supportedFormats) { ChangeFormatDialog dialog = new ChangeFormatDialog(myProject, new File(wcInfo.getPath()), false, !wcInfo.isIsWcRoot()); dialog.setSupported(supportedFormats); dialog.setData(wcInfo.getFormat()); if (!dialog.showAndGet()) { return; } final WorkingCopyFormat newFormat = dialog.getUpgradeMode(); if (!wcInfo.getFormat().equals(newFormat)) { StoreUtil.saveDocumentsAndProjectSettings(myProject); final Task.Backgroundable task = new SvnFormatWorker(myProject, newFormat, wcInfo) { @Override public void onSuccess() { super.onSuccess(); refresh(); } }; ProgressManager.getInstance().run(task); } }