src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.ts/Widget/_setPosition
class Widget:	private _setPosition(range: IRange | null, affinity: PositionAffinity | null): void {
		this._range = range;
		this._viewRange = null;
		this._affinity = affinity;

		if (this._range) {
			// Do not trust that widgets give a valid position
			const validModelRange = this._context.viewModel.model.validateRange(this._range);
			if (this._context.viewModel.coordinatesConverter.modelPositionIsVisible(validModelRange.getStartPosition()) || this._context.viewModel.coordinatesConverter.modelPositionIsVisible(validModelRange.getEndPosition())) {
				this._viewRange = this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(validModelRange, this._affinity ?? undefined);
			}
		}
	}