PsiElementPredicate () { WhileLoopPredicate predicate = new WhileLoopPredicate(); return e -> predicate.satisfiedBy(e) && !(ExpressionUtils .isLiteral(PsiUtil.skipParenthesizedExprDown(((PsiWhileStatement)e.getParent()).getCondition()), Boolean.TRUE)); }