code: private Class<?> getFieldRole(Field field, Requirement requirement)
      {
          Class<?> role;
  
          // Handle case of list or map
          if (isDependencyOfListType(field.getType())) {
              role = getGenericRole(field);
          } else {
              role = field.getType();
          }
  
          return role;
      }
docs: Extract component role from the field to inject.
  
  @param field the field to inject
  @param requirement the Requirement attribute
  @return the role of the field to inject