src/vs/workbench/browser/parts/editor/editorStatus.ts/ShowCurrentMarkerInStatusbarContribution/getMarker
class ShowCurrentMarkerInStatusbarContribution:	private getMarker(): IMarker | null {
		if (!this.configurationService.getValue<boolean>('problems.showCurrentInStatus')) {
			return null;
		}

		if (!this.editor) {
			return null;
		}

		const model = this.editor.getModel();
		if (!model) {
			return null;
		}

		const position = this.editor.getPosition();
		if (!position) {
			return null;
		}

		return this.markers.find(marker => Range.containsPosition(marker, position)) || null;
	}