}
return result;
}
protected TypeParameter makeTypeParameter(Declaration packageOrType, String typeParameter) {
final TypeParameter result;
if (packageOrType instanceof ClassOrInterfaceDeclaration) {
result = ((ClassOrInterfaceDeclaration)packageOrType).getTypeParameterDeclaration(typeParameter);
} else if (packageOrType instanceof FunctionDeclaration) {
result = ((FunctionDeclaration)packageOrType).getTypeParameterDeclaration(typeParameter);
} else if (packageOrType instanceof AliasDeclaration) {