public static void put(@NotNull List<String> parameters,boolean condition,@NotNull String value){
  if (condition) {
    parameters.add(value);
  }
}

public static void put ( @ NotNull List < String > parameters , boolean condition , @ NotNull String value ) { if ( condition ) { parameters . add ( value ) ; } }
puts given value to parameters if condition is satisfied
