code: public static boolean isCollectionType(final Type type) {
          return isParameterizedType(type) && isCollectionType((Class<?>) ((ParameterizedType) type).getRawType());
      }
docs: Check if a type is a collection type.
  
  @param type the type to check.
  @return true if the type is a collection type, false otherwise