PsiElement () { for (ClsCustomNavigationPolicy navigationPolicy : ClsCustomNavigationPolicy.EP_NAME.getExtensionList()) { try { PsiElement navigationElement = navigationPolicy.getNavigationElement(this); if (navigationElement != null) return navigationElement; } catch (IndexNotReadyException ignore) { } } try { PsiMethod method = getSourceMirrorMethod(); if (method != null) return method.getNavigationElement(); } catch (IndexNotReadyException ignore) { } return this; }