boolean (@NotNull String name, @NotNull PsiElement place) { PsiResolveHelper helper = JavaPsiFacade.getInstance(place.getProject()).getResolveHelper(); return helper.resolveAccessibleReferencedVariable(name, place) == null; }