PsiElement (final PsiElement element, final PsiElement navElement) { TargetElementEvaluatorEx2 evaluator = element != null ? TargetElementUtilBase.getElementEvaluatorsEx2(element.getLanguage()) : null; if (evaluator != null) { PsiElement result = evaluator.getGotoDeclarationTarget(element, navElement); if (result != null) return result; } return navElement; }