src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.ts/createTimeBasedContinueBracketSearchPredicate
function createTimeBasedContinueBracketSearchPredicate(maxDuration: number | undefined): ContinueBracketSearchPredicate {
	if (typeof maxDuration === 'undefined') {
		return () => true;
	} else {
		const startTime = Date.now();
		return () => {
			return (Date.now() - startTime <= maxDuration);
		};
	}
}