docs: @SuppressWarnings("WeakerAccess")
      @Internal
      protected final Collection getBeansOfTypeForField(BeanResolutionContext resolutionContext, BeanContext context, FieldInjectionPoint injectionPoint) {
          return resolveBeanWithGenericsForField(resolutionContext, injectionPoint, (beanType, qualifier) -> {
                      boolean hasNoGenerics = !injectionPoint.getType().isArray() && injectionPoint.asArgument().getTypeVariables().isEmpty();
                      if (hasNoGenerics) {
                          return ((DefaultBeanContext) context).getBean(resolutionContext, beanType, qualifier);
                      } else {
                          return ((DefaultBeanContext) context).getBeansOfType(resolutionContext, beanType, qualifier);
                      }
  
                  }
          );
      }