extract stuff we need for the ReferenceToConstantsAnalyzer