How I can replicate "Show source" option in Output window?

Hello guys! I don’t love built-in output, and due to this I want to make my own.

While I did a lot of work on it, I got 1 big problem. When you click on Outputted message, it should show you that line in script editor.

My current output system uses LogService to get messages, so it will be compatible with default output functions like print, warn and error. But, IDK how I can get source from it. I tried use debug functions, but sadly they return only things inside plugin script itself (prob I did smth wrong)

Is there any way to get source of message in plugin?