for (TypeVariable variable : parameters) {
ReferenceType referenceType = substitution.get(variable);
if (referenceType == null) {
referenceType = variable;
}
<BUG>argumentList.add(new ReferenceArgument(referenceType));
</BUG>
}
return (InstantiatedType)
apply(substitution, new InstantiatedType(new GenericClassType(rawType), argumentList));

for (TypeVariable variable : parameters) {
ReferenceType referenceType = substitution.get(variable);
if (referenceType == null) {
referenceType = variable;
}
argumentList.add(TypeArgument.forType(referenceType));
}
return (InstantiatedType)
apply(substitution, new InstantiatedType(new GenericClassType(rawType), argumentList));
