void (@NotNull ProgressIndicator indicator) { for (ShelvedChangeList list : schemeManager.getAllSchemes()) { if (!list.isValid()) continue; try { Path newTargetDirectory = suggestPatchName(myProject, list.DESCRIPTION, toFile, "").toPath(); ShelvedChangeList migratedList = createChangelistCopyWithChanges(list, newTargetDirectory); newSchemeManager.addScheme(migratedList, false); indicator.checkCanceled(); } catch (IOException e) { LOG.error("Can't copy patch file: " + list.path); } } clearShelvedLists(schemeManager.getAllSchemes(), false); }