boolean (PsiLocalVariable variable) { final Query<PsiReference> query = ReferencesSearch.search(variable); for (PsiReference reference : query) { if (reference instanceof PsiReferenceExpression && !isIgnored((PsiExpression)reference, false)) { return true; } } return false; }