if (type instanceof WildcardType) {
return configureWildcardType((WildcardType) type);
} else if (type instanceof ParameterizedType) {
return configureParameterizedType((ParameterizedType) type);
} else if (type instanceof GenericArrayType) {
throw new GroovyBugError("Not yet implemented");
} else if (type instanceof TypeVariable) {
return configureTypeVariableReference((TypeVariable) type);
} else if (type instanceof Class) {
return ClassHelper.makeWithoutCaching((Class) type, false);
} else {
throw new GroovyBugError("unknown type: " + type + " := " + type.getClass());
}
}