@classmethod
def _find_package_instance_references(cls, code):
    """
        Finds all reference causes by package instantiation
        """
    references = []
    for match in cls._package_instance_re.finditer(code):
        references.append(cls('package', match.group('lib'), match.group(
            'name')))
    return references
