docs: public static String stripParentheses(final String filter) {
      if (filter == null || filter.isEmpty()) {
        throw new IllegalArgumentException("Filter string cannot be null or empty");
      }
      if (filter.charAt(filter.length() - 1) != ')') {
        throw new IllegalArgumentException("Filter must end with a ')': " + filter);
      }
      final int start_pos = filter.indexOf('(');
      if (start_pos < 0) {
        throw new IllegalArgumentException("Filter must include a '(': " + filter);
      }
      return filter.substring(start_pos + 1, filter.length() - 1);
    }