code: public static void filteredWrite(String member, Predicate<String> includeFilter,
        Object taskObject, JsonGenerator jsonGenerator)
        throws JsonGenerationException, IOException {
      if (includeFilter != null) {
        if (includeFilter.apply(member)) {
          jsonGenerator.writeFieldName(member);
          jsonGenerator.writeObject(taskObject);
        }
      } else {
        jsonGenerator.writeFieldName(member);
        jsonGenerator.writeObject(taskObject);
      }
    }
docs: checks if the member is to be filtered out or no if filter itself is
  null, writes out that member
  
  @param member
  @param includeFilter
  @param taskObject
  @param jsonGenerator
  @throws JsonGenerationException
  @throws IOException