docs: public static Optional<String> extractStreamId(String filter) {
          if (isNullOrEmpty(filter)) {
              return Optional.empty();
          }
          final Matcher streamIdMatcher = filterStreamIdPattern.matcher(filter);
          if (streamIdMatcher.find()) {
              return Optional.of(streamIdMatcher.group(2));
          }
          return Optional.empty();
      }