boolean (@NotNull PyLoopStatement loopStatement) { final PyExpression expression = loopStatement instanceof PyForStatement ? ((PyForStatement)loopStatement).getForPart().getSource() : loopStatement instanceof PyWhileStatement ? ((PyWhileStatement)loopStatement).getWhilePart().getCondition() : null; return PyEvaluator.evaluateAsBooleanNoResolve(expression, false); }