public static <T> T findFirst(Collection<T> collection) {
        return stream(collection)
            .findFirst()
            .orElse(null);
    }
Return the first element. If there is none, return empty.

@param collection collection
@param <T> data type
@return Returns the first element, which may be empty
chat2db-server/chat2db-server-tools/chat2db-server-tools-common/src/main/java/ai/chat2db/server/tools/common/util/EasyCollectionUtils.java