src/vs/workbench/common/editor.ts/isEditorInputWithPreferredResource
export function isEditorInputWithPreferredResource(obj: unknown): obj is IEditorInputWithPreferredResource {
	const editorInputWithPreferredResource = obj as IEditorInputWithPreferredResource | undefined;
	if (!editorInputWithPreferredResource) {
		return false;
	}

	return URI.isUri(editorInputWithPreferredResource.preferredResource);
}