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