public static
getType(TypeWithClassName $type, string $genericClassName, string $typeVariableName): ?Type
Use Type::getTemplateType() instead.