void (List<XmlAttributeDescriptorImpl> result, String name, String referenceName) { for (Iterator<XmlAttributeDescriptorImpl> iterator = result.iterator(); iterator.hasNext();) { XmlAttributeDescriptorImpl descriptor = iterator.next(); if (descriptor.getName().equals(name) && (referenceName == null || referenceName.equals(descriptor.myReferenceName))) { iterator.remove(); } } }