boolean (PsiWhileStatement whileStatement) { final PsiExpression condition = whileStatement.getCondition(); if (BoolUtils.isTrue(condition)) { final PsiStatement body = whileStatement.getBody(); if (statementThrowsException(body)) { return true; } } return false; }