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