void (List<PsiReference> list) { for (PsiReference reference : list) { if (reference instanceof PsiJavaReference) { ((PsiJavaReference)reference).advancedResolve(false).isValidResult(); } else { reference.resolve(); } } }