Determines a function's dependencies based on its signature or annotations