code: def process_refs_for_node(cls, manifest, current_project, node):
          
          target_model = None
          target_model_name = None
          target_model_package = None
  
          for ref in node.refs:
              if len(ref) == 1:
                  target_model_name = ref[0]
              elif len(ref) == 2:
                  target_model_package, target_model_name = ref
  
              target_model = cls.resolve_ref(
                  manifest,
                  target_model_name,
                  target_model_package,
                  current_project,
                  node.get('package_name'))
  
              if target_model is None or target_model is cls.DISABLED:
                  # This may raise. Even if it doesn't, we don't want to add
                  # this node to the graph b/c there is no destination node
                  node.config['enabled'] = False
                  dbt.utils.invalid_ref_fail_unless_test(
                      node, target_model_name, target_model_package,
                      disabled=(target_model is cls.DISABLED)
                  )
  
                  continue
  
              target_model_id = target_model.get('unique_id')
  
              node.depends_on['nodes'].append(target_model_id)
              manifest.nodes[node['unique_id']] = node
docs: Given a manifest and a node in that manifest, process its refs