void migrate(@NotNull Project project,
@NotNull ProblemDescriptor descriptor,
@NotNull PsiForeachStatement foreachStatement,
@NotNull PsiExpression iteratedValue,
@NotNull PsiStatement body,
<BUG>@NotNull StreamApiMigrationInspection.TerminalBlock tb,

@NotNull List<Operation> operations) {</BUG>
PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(project);
if(tb.getSingleStatement() instanceof PsiReturnStatement) {

void migrate(@NotNull Project project,
@NotNull ProblemDescriptor descriptor,
@NotNull PsiForeachStatement foreachStatement,
@NotNull PsiExpression iteratedValue,
@NotNull PsiStatement body,
@NotNull StreamApiMigrationInspection.TerminalBlock tb) {
PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(project);
if(tb.getSingleStatement() instanceof PsiReturnStatement) {
