PsiReference[] (XmlTag element) { final XmlTag parent = PsiTreeUtil.getParentOfType(element, XmlTag.class); if (parent == null) return PsiReference.EMPTY_ARRAY; final XmlTag bundleNameTag = parent.findFirstSubTag(myFallbackBundleName); String bundleName = bundleNameTag != null ? bundleNameTag.getValue().getTrimmedText() : null; return new PsiReference[]{new MyPropertyReference(element.getValue().getText(), element, bundleName, getFallbackBundleName())}; }