src/vs/workbench/contrib/notebook/browser/notebookDiffEditorInput.ts/NotebookDiffEditorInput/matches
class NotebookDiffEditorInput:	override matches(otherInput: IEditorInput | IUntypedEditorInput): boolean {
		if (super.matches(otherInput)) {
			return true;
		}

		if (isResourceDiffEditorInput(otherInput)) {
			return this.primary.matches(otherInput.modifiedInput) && this.secondary.matches(otherInput.originalInput) && this.editorId !== undefined && this.editorId === otherInput.options?.override;
		}

		if (otherInput instanceof NotebookDiffEditorInput) {
			return this.viewType === otherInput.viewType
				&& isEqual(this.resource, otherInput.resource);
		}
		return false;
	}