setValue = (config, schemaPath, value, index) => {
	const { problem, object, property } = getObjectAndProperty(
		config,
		schemaPath,
		index
	);
	if (problem) return problem;
	object[/** @type {Property} */ (property)] = value;
	return null;
}
@param {Configuration} config configuration
@param {string} schemaPath path in the config
@param {ParsedValue} value parsed value
@param {number | undefined} index index of value when multiple values are provided, otherwise undefined
@returns {LocalProblem | null} problem or null for success