code: public static boolean hasDefaultConstructor(TypeRef item) {
          DefinitionRepository repository =  DefinitionRepository.getRepository();
          TypeDef def = repository.getDefinition(item);
          if (def == null && item instanceof ClassRef) {
              def = ((ClassRef)item).getDefinition();
          }
          return hasDefaultConstructor(def);
      }
docs: Checks if there is a default constructor available.
  
  @param item The clazz to check.
  @return     True if default constructor is found, false otherwise.