boolean (@NotNull PsiForStatement loopStatement) { if (statementContainsBreakToStatementOrAncestor(loopStatement)) { return true; } if (statementContainsContinueToAncestor(loopStatement)) { return true; } final PsiExpression condition = loopStatement.getCondition(); if (condition == null) { return false; } final Object value = ExpressionUtils.computeConstantExpression(condition); return Boolean.TRUE != value; }