Restore check in BuiltInsReferenceResolver

Erroneously deleted in d98825683105e593ef34fbff780f6f84ecbc5162
Minor: Remove context parameter from getContainingFile() utility and move it to DescriptorToSourceUtils