code: public static TypeDef forClass(final Class<?> typeClass) {
          
          Utils.validateNotNull(typeClass, "Class cannot be null");
          Utils.validateIsTrue(!typeClass.isArray(), "Cannot obtain TypeDef from array class");
          
          final TypeDefRegistry typeDefRegistry = TypeDefRegistry.getInstance();
          return typeDefRegistry.forClass(typeClass);
          
      }
docs: <p>
  Retrieves the <tt>TypeDef</tt> object corresponding with the given class.
  </p>
  
  @param typeClass the class which TypeDef must be obtained.
  @return the TypeDef