class CollectionUtils {

    public static <T> T getRandomItemFromCollection (@NotNull Collection<T> collection) {
        return getRandomItemFromList(collection instanceof List ? (List<T>) collection : List.copyOf(collection));
    }

    private  CollectionUtils();

}