code: @Deprecated
      protected Class<?> getGenericRole(Field field)
      {
          Type type = field.getGenericType();
  
          if (type instanceof ParameterizedType) {
              ParameterizedType pType = (ParameterizedType) type;
              Type[] types = pType.getActualTypeArguments();
              if (types.length > 0 && types[types.length - 1] instanceof Class) {
                  return (Class) types[types.length - 1];
              }
          }
  
          return null;
      }
docs: Extract generic type from the list field.
  
  @param field the list field to inject
  @return the role of the components in the list
  @since 4.0M1 it's useless