In theory, it is possible.
One can rewrite the compiler, makes it automatically records the last visual component that make a call. But still, it is extremely hard and almost impossible because a function can be called form a formless program, for example from console mode or a thread or whatever. For a bounty of thousands dollars, I think still no one will want to take the challenge.