void (XmlFile xmlFile, XmlAttribute attribute) { final Set<XmlFile> set = myProcessingContext.get(VISITED_KEY); if (set.contains(xmlFile)) { return; } set.add(xmlFile); final XmlDocument document = xmlFile.getDocument(); if (document == null) return; final XmlTag rootTag = document.getRootTag(); if (rootTag == null) return; rootTag.processElements(this, attribute); }