public void removeField(final int tag) {
        final List<TiffOutputField> matches = new ArrayList<>();
        for (final TiffOutputField field : fields) {
            if (field.tag == tag) {
                matches.add(field);
            }
        }
        fields.removeAll(matches);
    }
Finds the TiffOutputField for the given TagInfo from this TiffOutputDirectory.

<p>
If there is no field matching the given TagInfo, null will be returned.
</p>

@param tagInfo the TagInfo specifying the field
@return the field matching tagInfo or null, if the field isn't present
@see #findField(int)
src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputDirectory.java