public ConditionalMerger mergeIf(boolean condition,Supplier<Object[]> insnsSupplier){
  Validate.notNull(insnsSupplier);
  if (!condition) {
    return this;
  }
  generatedInstructions.addAll(Arrays.asList(insnsSupplier.get()));
  return this;
}

public ConditionalMerger mergeIf ( boolean condition , Supplier < Object [ ] > insnsSupplier ) { Validate . notNull ( insnsSupplier ) ; if ( ! condition ) { return this ; } generatedInstructions . addAll ( Arrays . asList ( insnsSupplier . get ( ) ) ) ; return this ; }
generates a set of instructions if a certain condition is met .
