Hi Kalle. I hope it's feasible. Unfortunately I don't know much about internals. Any info on the matter would be very appreciated, though :P
Anyway, if we can scan the function body to complain about `return null;` when the function is `:void`, surely we can scan just the very top of the function body to read the imports :P