PsiElement () { if (!isPhysical()) { final XmlElement including = getUserData(INCLUDING_ELEMENT); if (including != null) { return including; } PsiElement astParent = super.getParent(); PsiElement parentNavigation = astParent.getNavigationElement(); if (parentNavigation.getTextOffset() == getTextOffset()) return parentNavigation; return this; } return super.getNavigationElement(); }