Handled warning for generic type