Get occurrences for return keywords.

isAnyFunction was in services.ts. I'm moving it now.