static <R> Optional<R> firstValue(List<Object> properties, Function<Object, R> transform) {
    return notEmpty(properties).map(v -> v.get(0)).map(transform::apply);
  }
static < R > Optional < R > firstValue ( List < Object > properties , Function < Object , R > transform ) { return notEmpty ( properties ) . map ( v -> v . get ( 0 ) ) . map ( transform :: apply ) ; }
VisibleForTesting