deal with warnings related to generics and varargs