boolean ( @NotNull PsiVariable variable, @Nullable PsiElement context) { if (context == null || variable.isUnnamed()) { return false; } final VariableUsedInInnerClassVisitor visitor = new VariableUsedInInnerClassVisitor(variable); context.accept(visitor); return visitor.isUsedInInnerClass(); }