SelfReference (XmlAttribute element, PsiElement target) { if (element.getValue().contains(":")) { return new SelfReference(element, target, element.getValue().indexOf(':') + 1); } return new SelfReference(element, target); }