if (predictionTasks.isEmpty()) { logger.error(inventoryPlugin.getSupplyType() + ": There are no predictions in the gap, no need to reconcile." + " Number of demand tasks: " + supplyTasks.size()); return; }
  private void reconcile(String customerName, CustomerState state) {    UnaryPredicate tasksGapPred = new TasksInTheGap(customerName, state.getLatestEndTime(),                                                       state.getCustomerLeadTime());    UnaryPredicate predictionsGapPred = new PredictionsInTheGap(customerName, state.getLatestEndTime(),                                                                state.getCustomerLeadTime());    Collection supplyTasks = tasksInTheGap(tasksGapPred);    Collection predictionTasks = tasksInTheGap(predictionsGapPred);    reconcilePredictions(supplyTasks, predictionTasks);  }