private ConstructorToParameterValuesConverter getConverter(AnnotatedConstructor<?> soleCreatedTypeConstructor,
MethodParameterIndexer methodParameterIndexer,
boolean constructorInjection) {
if (constructorInjection) {
return new MixedConstructorConverter(new QualifierAnnotationsFilter(beanManager),
soleCreatedTypeConstructor, methodParameterIndexer);
} else {
// If the constructor isn't annotated with @Inject, the no dependencies are injected, all parameters
// are taken from the factory method.
return new FactoryParameterOnlyConstructorConverter(soleCreatedTypeConstructor, methodParameterIndexer);