src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.ts/_normalizeOptions
function _normalizeOptions(options: IModelDecorationOptions): ModelDecorationOptions {
	if (options instanceof ModelDecorationOptions) {
		return options;
	}
	return ModelDecorationOptions.createDynamic(options);
}