code: public SearchRequestBuilder getSearchRequestBuilder(
              SearchRequestBuilder searchRequestBuilder,
              AggregationBuilder[] aggregationBuilders) {
          ifNotNull(aggregationBuilders,
                  array -> stream(array).filter(getIsNotNull())
                          .forEach(searchRequestBuilder::addAggregation));
          return searchRequestBuilder;
      }
docs: Gets search request builder.
  
  @param searchRequestBuilder the search request builder
  @param aggregationBuilders  the aggregation builders
  @return the search request builder