src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts/AbstractTaskService/_splitPerGroupType
class AbstractTaskService:	private _splitPerGroupType(tasks: Task[], taskGlobsInList: boolean = false): { none: Task[]; defaults: Task[] } {
		const none: Task[] = [];
		const defaults: Task[] = [];
		for (const task of tasks) {
			// At this point (assuming taskGlobsInList is true) there are tasks with matching globs, so only put those in defaults
			if (taskGlobsInList && typeof (task.configurationProperties.group as TaskGroup).isDefault === 'string') {
				defaults.push(task);
			} else if (!taskGlobsInList && (task.configurationProperties.group as TaskGroup).isDefault === true) {
				defaults.push(task);
			} else {
				none.push(task);
			}
		}
		return { none, defaults };
	}