src/vs/platform/editor/common/editor.ts/isResourceEditorInput
export function isResourceEditorInput(editor: unknown): editor is IResourceEditorInput {
	const candidate = editor as IResourceEditorInput | undefined;

	return URI.isUri(candidate?.resource);
}