void (@NotNull Element changeNode, @Nullable ContentRevision rev, @NotNull RevisionSide side) { if (rev == null) return; FilePath filePath = rev.getFile(); String path = filePath.getPath(); if (hasIllegalXmlChars(path)) { changeNode.setAttribute(side.getPathKey(), JDOMUtil.removeControlChars(path)); changeNode.setAttribute(side.getEscapedPathKey(), XmlStringUtil.escapeIllegalXmlChars(path)); } else { changeNode.setAttribute(side.getPathKey(), path); } changeNode.setAttribute(side.getIsDirKey(), String.valueOf(filePath.isDirectory())); }