getModulesSizes = modules => {
	const sizes = Object.create(null);
	for (const module of modules) {
		for (const type of module.getSourceTypes()) {
			sizes[type] = (sizes[type] || 0) + module.size(type);
		}
	}
	return sizes;
}
@param {Iterable<Module>} modules the sortable Set to get the size of
@returns {Record<string, number>} the sizes of the modules