private void migrateOldShelfInfo(@NotNull Element element, boolean recycled) throws InvalidDataException, IOException {
    for (Element changeSetElement : element.getChildren(recycled ? ELEMENT_RECYCLED_CHANGELIST : ELEMENT_CHANGELIST)) {
      ShelvedChangeList list = readOneShelvedChangeList(changeSetElement);
      if (!list.isValid()) {
        break;
      }
      Path uniqueDir = generateUniqueSchemePatchDir(list.getDescription(), false);
      list.setName(uniqueDir.getFileName().toString());
      list.setRecycled(recycled);
      schemeManager.addScheme(list, false);
    }
  }
private void migrateOldShelfInfo(@NotNull Element element, boolean recycled)