class FinishedTriggersSet implements FinishedTriggers {

  @Override
  public void clearRecursively(ExecutableTrigger trigger) {
    finishedTriggers.remove(trigger);
    for (ExecutableTrigger subTrigger : trigger.subTriggers()) {
      clearRecursively(subTrigger);
    }
  }

  private  FinishedTriggersSet(Set<ExecutableTrigger> finishedTriggers);

}