private static void writeFilterSet(
            BerBuffer buffer,
            byte[] filter,
            int filterType,
            Context context,
            int filterEnd) {
        context.readIndex++;
        buffer.beginSequence(filterType);
        int closingParenIndex = findClosingParenIndex(filter, context.readIndex, filterEnd);
        writeFilterInSet(buffer, filter, filterType, context.readIndex, closingParenIndex);
        context.readIndex = closingParenIndex + 1;
        buffer.endSequence();
    }
@author James Chen
@implSpec <a href="https://tools.ietf.org/html/rfc4515"> RFC 4515: String Representation of
          Search Filters</a>
turms-gateway/src/main/java/im/turms/gateway/infra/ldap/element/operation/search/Filter.java