code: public static String getDescription(TypeDeclaration type) {
  		if (type == null || type.description() == null) {
  			return null;
  		} else {
  			return type.description().value();
  		}
  	}
docs: Safely get description from a type with null checks
  
  @param type
  The RAML TypeDeclaration to check
  @return The description if defined or null if empty