GROOV>-5891: correct inference for to apply current generics on method calls