boolean (@Nullable PsiConditionalLoopStatement loopStatement) { if (loopStatement == null) return false; if (loopStatement instanceof PsiForStatement forStatement) { PsiExpression condition = forStatement.getCondition(); if (condition != null && !BoolUtils.isTrue(condition)) return false; return (forStatement.getInitialization() == null || forStatement.getInitialization() instanceof PsiEmptyStatement) && (forStatement.getUpdate() == null || forStatement.getUpdate() instanceof PsiEmptyStatement); } return BoolUtils.isTrue(loopStatement.getCondition()); }