code: public static boolean isListClass(Class<?> type) {
          if (type.isPrimitive() || type.isEnum()) {
              return false;
          }
          return type.equals(List.class);
      }
docs: Is list class boolean.
  
  @param type the type
  @return the boolean