modulesByClass = function (className, include) {
			let searchClasses = className;
			if (typeof className === "string") {
				searchClasses = className.split(" ");
			}

			const newModules = modules.filter(function (module) {
				const classes = module.data.classes.toLowerCase().split(" ");

				for (const searchClass of searchClasses) {
					if (classes.indexOf(searchClass.toLowerCase()) !== -1) {
						return include;
					}
				}

				return !include;
			});

			setSelectionMethodsForModules(newModules);
			return newModules;
		}
Filters a collection of modules based on classname(s).
@param {string|string[]} className one or multiple classnames (array or space divided).
@param {boolean} include if the filter should include or exclude the modules with the specific classes.
@returns {Module[]} Filtered collection of modules.