XmlAttribute (@NotNull String name, @NotNull String quotedValue, @NotNull FileType fileType) { final XmlDocument document = createXmlDocument("<tag " + name + "=" + quotedValue + "/>", "dummy." + fileType.getDefaultExtension(), fileType); XmlTag tag = document.getRootTag(); assert tag != null; XmlAttribute[] attributes = tag.getAttributes(); LOG.assertTrue(attributes.length == 1, document.getText()); return attributes[0]; }