docs: public void removeTask(AgentTask task) {
  		final Iterator<WeakReference<AgentTask>> iterator = this.tasks.iterator();
  		while (iterator.hasNext()) {
  			final WeakReference<AgentTask> reference = iterator.next();
  			final AgentTask knownTask = reference.get();
  			if (knownTask == null) {
  				iterator.remove();
  			} else if (Objects.equals(knownTask.getName(), task.getName())) {
  				iterator.remove();
  				return;
  			}
  		}
  	}