@Override @NotNull public PsiReference[] getReferencesByElement(@NotNull PsiElement element, @NotNull ProcessingContext context) { final XmlAttributeValue value = (XmlAttributeValue)element; if (hasIdRefType(value)) { return new PsiReference[]{ new IdReference(value) }; } else if (hasIdType(value)) { return new PsiReference[]{ new AttributeValueSelfReference(element) }; } return PsiReference.EMPTY_ARRAY; }
@NotNull public PsiReference[] getReferencesByElement(@NotNull PsiElement element, @NotNull ProcessingContext context) { final XmlAttributeValue value = (XmlAttributeValue)element; if (hasIdRefType(value)) { return new PsiReference[]{ new IdReference(value) }; } else if (hasIdType(value)) { return new PsiReference[]{ new AttributeValueSelfReference(element) }; } return PsiReference.EMPTY_ARRAY; }