code: public static <T, R> R firstNonNull(Function<T, R> function, Collection<T> values) {
          return values == null ? null : firstNonNull(function, values.stream());
      }
docs: Gets first result of function which is not null.
  
  @param <T>      type of values.
  @param <R>      element to return.
  @param function function to apply to each value.
  @param values   all possible values to apply function to.
  @return first result which was not null,
  OR <code>null</code> if either result for all values was <code>null</code> or values was <code>null</code>.