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