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