boolean (PsiExpression expression) { final PsiStatement statement = PsiTreeUtil.getParentOfType(expression, PsiStatement.class, true, PsiMember.class, PsiLambdaExpression.class); return statement instanceof PsiLoopStatement; }