code: public WorkProgress createTaskProgress(long amount, String text) {
  		this.amount += amount;
  		SubWorkProgress task = new SubWorkProgress(this, amount, amount, text);
  		synchronized (tasks) {
  			tasks.add(task);
  			if (jp != null) jp.addToJoinDoNotCancel(task.getSynch());
  		}
  		return task;
  	}
docs: Create a sub-progress for the given amount of work (this amount is added to the total amount to be done).