@NotNull
    public static <T> ComparatorCompat<T> nullsLast(@Nullable Comparator<? super T> comparator) {
        return nullsComparator(false, comparator);
    }
@ NotNull public static < T > ComparatorCompat < T > nullsLast ( @ Nullable Comparator < ? super T > comparator ) { return nullsComparator ( false , comparator ) ; }
Returns a comparator that considers {@code null} to be greater than non-null.
If the specified comparator is {@code null}, then the returned
comparator considers all non-null values to be equal.

@param <T> the type of the objects compared by the comparator
@param comparator  a comparator for comparing non-null values
@return a comparator