boolean (@NotNull PyComprehensionElement comprehension) { final boolean isAtLeast30 = !LanguageLevel.forElement(comprehension).isPython2(); final boolean isListComprehension = comprehension instanceof PyListCompExpression; return !isListComprehension || isAtLeast30; }