PsiElement () { PsiReference reference = chooseReference(); if (cannotChoose()) { ResolveResult[] results = multiResolve(false); return results.length == 1 ? results[0].getElement() : null; } return reference.resolve(); }