Temporary solution. Copy-pasted from rocky-hacks/linecache project. Will/should be solved generally in the future.
[Validate]