avoid compiler warning for generic function arguments in effective method body