docs: public final void initializeReferences(Collection<Bean> beans) {
          Map<BeanId, Bean> indexed = BeanUtils.uniqueIndex(beans);
          for (Bean bean : beans) {
              for (String name : bean.getReferenceNames()) {
                  List<BeanId> ids = bean.getReference(name);
                  if (ids == null) {
                      continue;
                  }
                  for (BeanId id : ids) {
                      Bean ref = indexed.get(id);
                      if (ref == null) {
                          Optional<Bean> optionalRef = getEager(id);
                          if (optionalRef.isPresent()) {
                              ref = optionalRef.get();
                          }
                      }
                      id.setBean(ref);
                  }
              }
          }
      }