public static <T, R> R mapTo(T source, Function<T, R> function) {
        return mapTo(source, function, null);
    }
Get the value of an object that may not be null

@param source original object
@param function conversion method
@param <T>
@param <R>
@return Return value If empty, return null
chat2db-server/chat2db-server-tools/chat2db-server-tools-common/src/main/java/ai/chat2db/server/tools/common/util/EasyOptionalUtils.java