PsiElement () { if (myAnchorIdx != -1 && myOccurrences[myAnchorIdx] != null) { return myOccurrences[myAnchorIdx].getParent(); } else { return myAnchorElement != null ? myAnchorElement.getElement() : null; } }