code: public static boolean hasDefaultConstructor(TypeDef item) {
          if (item == null) {
              return false;
          } else if (item.getConstructors().isEmpty()) {
              return true;
          } else {
              for (Method constructor : item.getConstructors()) {
                  if (constructor.getArguments().size() == 0) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: Checks if there is a default constructor available.
  
  @param item The clazz to check.
  @return     True if default constructor is found, false otherwise.