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