private static BsonValue maybeUnwrap(BsonDocument document) {
    return document.containsKey("ignore") ? document.get("ignore") : document;
  }
Read and Write in Jackson API but using BSON reader/writer adapters
criteria/mongo/test/org/immutables/criteria/mongo/bson4jackson/BsonParserTest.java