Fix anonymous generics not being recognized as generic