see the earlier answer, find_static does exactly this. as it's used in multiple places abstraction is needed.