WIP: trying to get list of references via list of tokens
WIP: extract references... and instance types?