void (@NotNull PyAssignmentExpression node) { final PyComprehensionElement comprehensionElement = PsiTreeUtil.getParentOfType(node, PyComprehensionElement.class, true, ScopeOwner.class); if (ScopeUtil.getScopeOwner(comprehensionElement) instanceof PyClass) { getHolder().newAnnotation(HighlightSeverity.ERROR, message("ANN.assignment.expressions.within.a.comprehension.cannot.be.used.in.a.class.body")).create(); } }