void () { if (Messages.showOkCancelDialog(myProject, VcsBundle.message("shelve.moving.failed.prompt"), VcsBundle.message("shelve.error.title"), VcsBundle.message("shelve.use.new.directory.button"), VcsBundle.message("shelve.revert.moving.button"), UIUtil.getWarningIcon()) == Messages.OK) { updateShelveSchemaManager(newSchemeManager); } else { VcsConfiguration vcsConfiguration = VcsConfiguration.getInstance(myProject); vcsConfiguration.USE_CUSTOM_SHELF_PATH = wasCustom; if (wasCustom) { vcsConfiguration.CUSTOM_SHELF_PATH = FileUtil.toSystemIndependentName(fromFile.getPath()); } } }