src/vs/workbench/common/editor.ts/isResourceDiffEditorInput
export function isResourceDiffEditorInput(editor: IUntypedEditorInput): editor is IResourceDiffEditorInput {
	const candidate = editor as IResourceDiffEditorInput;

	return candidate.originalInput !== undefined && candidate.modifiedInput !== undefined;
}