public SearchSourceBuilder aggregation(AbstractAggregationBuilder aggregation){
  if (aggregations == null) {
    aggregations=new ArrayList<>();
  }
  aggregations.add(aggregation);
  return this;
}

public SearchSourceBuilder aggregation ( AbstractAggregationBuilder aggregation ) { if ( aggregations == null ) { aggregations = new ArrayList < > ( ) ; } aggregations . add ( aggregation ) ; return this ; }
add an get to perform as part of the search .
