boolean (@NotNull PsiVariable variable, @NotNull Predicate<? super PsiAssignmentExpression> skipFilter, @Nullable PsiElement context) { if (context == null || variable.isUnnamed()) { return false; } final VariableAssignedVisitor visitor = new VariableAssignedVisitor(variable, skipFilter, true); context.accept(visitor); return visitor.isAssigned(); }