docs: private void runTasks() {
      // Execute any tasks that were queue during execution of the command.
      if (!tasks.isEmpty()) {
        for (Runnable task : tasks) {
          log.trace("Executing task {}", task);
          task.run();
        }
        tasks.clear();
      }
    }