NullNeedsCastForVarargs
This call passes a null *array*, so it always produces NullPointerException. To pass a null *element*, cast to the element type.
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("NullNeedsCastForVarargs")
to the enclosing element.