src/vs/workbench/services/editor/browser/editorService.ts/isOpenInEditorGroup
function isOpenInEditorGroup(obj: unknown): obj is OpenInEditorGroup {
	const candidate = obj as OpenInEditorGroup | undefined;

	return typeof obj === 'number' || isEditorGroup(candidate);
}