

def link_references(self, progress_monitor=NullProgressMonitor(), local_object_id=None):
    ann_refs = self._get_query(self.ann_field_kind, local_object_id)
    acount = ann_refs.count()
    progress_monitor.info('Annotation Field count: {0}'.format(acount))
    try:
        self._link_ann_fields(queryset_iterator(ann_refs), acount, progress_monitor)
    except Exception:
        logger.exception('Error while processing annotation fields')
    call_gc()
    enum_refs = self._get_query(self.enum_value_kind, local_object_id)
    ecount = enum_refs.count()
    progress_monitor.info('Enumeration Value count: {0}'.format(ecount))
    try:
        self._link_enum_values(queryset_iterator(enum_refs), ecount, progress_monitor)
    except Exception:
        logger.exception('Error while processing enumeration values')
    call_gc()
    field_refs = ann_refs._get_query(self.field_kind, local_object_id)
    fcount = field_refs.count()
    progress_monitor.info('Field count: {0}'.format(fcount))
    try:
        self._link_fields(queryset_iterator(field_refs), fcount, progress_monitor)
    except Exception:
        logger.exception('Error while processing fields')
    call_gc()

dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/codebase/linker/java_linkers.py JavaFieldLinker.link_references/VarMisuse@160/277 `self`->`ann_refs`