src/vs/workbench/contrib/notebook/browser/notebookKernelServiceImpl.ts/NotebookKernelService/getSelectedOrSuggestedKernel
class NotebookKernelService:	getSelectedOrSuggestedKernel(notebook: INotebookTextModel): INotebookKernel | undefined {
		const info = this.getMatchingKernel(notebook);
		return info.selected ?? (info.all.length === 1 ? info.all[0] : undefined);
	}