Cache the results from wrapsTypeParameter
This fixes a crash. The return value for getEnclosingType would be undefined inside the getGenerativeTypeClassification method, even though it was not before.

By 'caching' it in a variable we prevent the value from being optimized away.