Move code out of closure in `getReferencedSymbolsForNode`
The note is not visible to the blocked user.