void (@NotNull Element element, @NotNull ShelvedChangeList shelvedChangeList) { if (shelvedChangeList.path != null) { element.addContent(new Element(Constants.OPTION) .setAttribute(Constants.NAME, "PATH") .setAttribute(Constants.VALUE, shelvedChangeList.path.toString().replace(File.separatorChar, '/'))); } DefaultJDOMExternalizer.writeExternal(shelvedChangeList, element); element.setAttribute(NAME_ATTRIBUTE, shelvedChangeList.getName()); element.setAttribute(ATTRIBUTE_DATE, Long.toString(shelvedChangeList.DATE.getTime())); element.setAttribute(ATTRIBUTE_RECYCLED_CHANGELIST, Boolean.toString(shelvedChangeList.isRecycled())); if (shelvedChangeList.isMarkedToDelete()) { element.setAttribute(ATTRIBUTE_TOBE_DELETED_CHANGELIST, "true"); } if (shelvedChangeList.isDeleted()) { element.setAttribute(ATTRIBUTE_DELETED_CHANGELIST, "true"); } for (ShelvedBinaryFile file : shelvedChangeList.getBinaryFiles()) { Element child = new Element(ELEMENT_BINARY); file.writeExternal(child); element.addContent(child); } }