Suppress false positives by adding the suppression annotation @SuppressWarnings("CollectionToArraySafeParameter") to the enclosing element.
@SuppressWarnings("CollectionToArraySafeParameter")