code: public static <T> T safeGetValue(Supplier<T> supplier, T defaultValue) {
  
      try {
        return supplier.get();
      }
      catch (Throwable ignore) {
        return defaultValue;
      }
    }
docs: Safely returns the value supplied by the given {@link Supplier}.  If an {@link Exception} or {@link Error} occurs
  then the {@code defaultValue} will be returned.
  
  @param <T> {@link Class} type of the value to get.
  @param supplier {@link Supplier} of the value.
  @param defaultValue value to return if the {@link Supplier} is unable to supply the value.
  @return a value from the given {@link Supplier} in an error safe manner.  If an {@link Exception} or {@link Error}
  occurs then the {@code defaultValue} will be returned.
  @see java.util.function.Supplier