code: public static IntegerBinding divideSafe(ObservableIntegerValue dividend, ObservableIntegerValue divisor, ObservableIntegerValue defaultValue) {
          return Bindings.createIntegerBinding(() -> {
  
              if (divisor.intValue() == 0) {
                  return defaultValue.get();
              } else {
                  return dividend.intValue() / divisor.intValue();
              }
  
          }, dividend, divisor);
      }
docs: An integer binding of a division that won't throw an {@link java.lang.ArithmeticException}
  when a division by zero happens. See {@link #divideSafe(javafx.beans.value.ObservableIntegerValue,
  javafx.beans.value.ObservableIntegerValue)}
  for more information.
  
  @param dividend     the observable value used as dividend
  @param divisor      the observable value used as divisor
  @param defaultValue the observable value that is used as default value. The binding will have this value when a
  division by zero happens.
  @return the resulting integer binding