Type inference for generic parameters when calling a method - Java Community | Help. Code. Learn.