private void addObjectToBuilder(@NotNull StringBuilder builder,@NotNull String object,@NotNull ObjectTypes type){
  builder.append(encapsulateObject(object,type));
}

private void addObjectToBuilder ( @ NotNull StringBuilder builder , @ NotNull String object , @ NotNull ObjectTypes type ) { builder . append ( encapsulateObject ( object , type ) ) ; }
method encapsulates object , then adds object to the builder . note the object cannot be null .
