void (final XmlWriter writer) { if (myInspectionSuppressions.size() > 0) { writer.startElement(UIFormXmlConstants.ELEMENT_INSPECTION_SUPPRESSIONS); for(LwInspectionSuppression suppression: myInspectionSuppressions) { writer.startElement(UIFormXmlConstants.ELEMENT_SUPPRESS); writer.addAttribute(UIFormXmlConstants.ATTRIBUTE_INSPECTION, suppression.getInspectionId()); if (suppression.getComponentId() != null) { writer.addAttribute(UIFormXmlConstants.ATTRIBUTE_ID, suppression.getComponentId()); } writer.endElement(); } writer.endElement(); } }