Is it possible to capture a shadow on an emissive plane? I understand the absurdity of my question, but I'm curious to know if it is possible to do this (On Cycles, and Eevee)

Basically, the plane captures the shadow, if the material is not emissive.
But I would like to make the plane emissive and at the same time capture the shadow,Avoiding the use of any shadow catcher

Plane with material not emissive:


Emissive plane (Without shadow obviously)
I can think of a way to do it in Eevee, but not Cycles. In Eevee, you can extract the color generated by a shader using a Shader to RGB node. If you connect this node to a Diffuse shader and a ColorRamp, you can get a shadow mask.