code: public static boolean isAssignable(TypeName typeName, Class<?> assignableClazz) {
  		try {
  			if (typeName instanceof ParameterizedTypeName) {
  				typeName = ((ParameterizedTypeName) typeName).rawType;
  			} else if (typeName instanceof ArrayTypeName) {
  				typeName = ((ArrayTypeName) typeName).componentType;
  			}
  
  			Class<?> resolvedType = Class.forName(typeName.toString());
  			return assignableClazz.isAssignableFrom(resolvedType);
  		} catch (ClassNotFoundException e) {
  			return false;
  		}
  	}
docs: Checks if is assignable.
  
  @param typeName
  the type name
  @param assignableClazz
  the assignable clazz
  @return true, if is assignable