private void addObjectsToBuilder(@NotNull StringBuilder builder,@NotNull List<String> objects,@NotNull ObjectTypes type){
  Preconditions.checkArgument(objects.size() >= 1);
  for (  String s : objects) {
    if (objects.indexOf(s) != 0) {
      builder.append(" , ");
    }
    builder.append(encapsulateObject(s,type));
  }
}

private void addObjectsToBuilder ( @ NotNull StringBuilder builder , @ NotNull List < String > objects , @ NotNull ObjectTypes type ) { Preconditions . checkArgument ( objects . size ( ) >= 1 ) ; for ( String s : objects ) { if ( objects . indexOf ( s ) != 0 ) { builder . append ( " , " ) ; } builder . append ( encapsulateObject ( s , type ) ) ; } }
method adds a list of objects to the builder : puts commas between the literal and encapsulates the objects with " or < depending on the boolean literal . note objects cannot be null and must at least contain one value .
