}
}
PsiStatement[] statements = tb.getStatements();
if(statements.length == 1 || (statements.length == 2 && statements[1] instanceof PsiBreakStatement)) {
restoreComments(foreachStatement, body);
<BUG>String streamText = generateStream(iteratedValue, operations).toString();
</BUG>
streamText = addTerminalOperation(streamText, "anyMatch", foreachStatement, tb);
PsiStatement statement = statements[0];
PsiAssignmentExpression assignment = ExpressionUtils.getAssignment(statement);

}
simplifyAndFormat(project, result);
return;
}
}
}
PsiStatement[] statements = tb.getStatements();
if(statements.length == 1 || (statements.length == 2 && statements[1] instanceof PsiBreakStatement)) {
restoreComments(foreachStatement, body);
String streamText = generateStream(iteratedValue, tb.getLastOperation()).toString();
streamText = addTerminalOperation(streamText, "anyMatch", foreachStatement, tb);
PsiStatement statement = statements[0];
PsiAssignmentExpression assignment = ExpressionUtils.getAssignment(statement);
