PsiModifierListOwner (@NotNull PsiModifierListOwner element) { if (element instanceof PsiCompiledElement) { PsiElement navigationElement = element.getNavigationElement(); if (navigationElement instanceof PsiModifierListOwner) { return (PsiModifierListOwner)navigationElement; } } return element; }