PsiElement (@NotNull PsiPolyVariantReference reference) { PsiElement referent = reference.resolve(); if (referent == null) { ResolveResult[] results = reference.multiResolve(true); if (results.length > 0) { referent = results[0].getElement(); } } return referent; }