This is easy enough:
```java
private void excludeContentStateFromQuery(ContentState state, BooleanQuery query)
{
    TermQuery termQuery = new TermQuery(new Term(IndexFieldLabels.CONTENT_STATE_FIELD, state.toString()));
    query.add(termQuery, Occur.MUST_NOT);
}
```
putting the states in a Set would let us call that in a foreach loop