void (List<OperationRecord> operations, StreamToLoopReplacementContext context) { allOperations(operations).forEach(or -> or.myOperation.preprocessVariables(context, or.myInVar, or.myOutVar)); allOperations(operations).map(or -> or.myOperation).forEach(op -> op.registerReusedElements(context::registerReusedElement)); allOperations(operations).map(or -> or.myInVar).distinct().forEach(var -> var.register(context)); }