code: private static void reconcile(JSType top, List defs, Map refs) {
      List unres = (List) refs.get(top.getFeatureName());
      if (unres != null)
        for (Iterator iter = unres.iterator(); iter.hasNext(); )
          ((JSDynamic) iter.next()).setExpectedType(top);
      for (Iterator iter = defs.iterator(); iter.hasNext(); ) {
        JSType one = (JSType) iter.next();
        List ur = (List) refs.get(one.getFeatureName());
        if (ur != null)
          for (Iterator jter = ur.iterator(); jter.hasNext(); )
            ((JSDynamic) jter.next()).setExpectedType(one);
      }
    }
docs: Subroutine to resolve dangling "expected" references