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