src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.ts/getFocusedWebviewDelegate
function getFocusedWebviewDelegate(accessor: ServicesAccessor): Webview | undefined {
	const editorService = accessor.get(IEditorService);
	const editor = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
	if (!editor?.hasEditorFocus()) {
		return;
	}

	if (!editor?.hasWebviewFocus()) {
		return;
	}

	const webview = editor?.getInnerWebview();
	return webview;
}