Infer generic type to methods and classes