boolean (@NotNull PsiReference reference) { if (reference instanceof PsiPolyVariantReference) { return ((PsiPolyVariantReference)reference).multiResolve(false).length > 0; } return reference.resolve() != null; }