boolean (@NotNull PsiDoWhileStatement loopStatement, @Nullable PsiMethod method) { final PsiExpression condition = loopStatement.getCondition(); final Object value = ExpressionUtils.computeConstantExpression(condition); final PsiStatement body = loopStatement.getBody(); return statementMayCompleteNormally(body, method) && value != Boolean.TRUE || statementContainsBreakToStatementOrAncestor(loopStatement) || statementContainsContinueToAncestor(loopStatement); }