void (Project project, XmlAttribute attribute, XmlTag parent) { if (StringUtil.isEmpty(myPrefix)) { attribute.delete(); } else { XmlAttributeValue value = attribute.getValueElement(); if (value == null) { return; } PsiReference[] references = getLocationReferences(myPrefix, value); removeReferencesOrAttribute(references); } }