List<OperationRecord> (@NotNull List<Operation> operations) { ChainVariable inVar = ChainVariable.STUB; ChainVariable outVar; List<OperationRecord> records = new ArrayList<>(operations.size()); for (Operation operation : operations) { outVar = operation.getOutVar(inVar); records.add(new OperationRecord(inVar, outVar, operation)); inVar = outVar; } return records; }