public static <T> List<T> emptyOnNull(List<T> list) {
        return list == null ? new ArrayList<>() : list;
    }
@Test
    void emptyOnNull() {
        var list = ListUtils.emptyOnNull(null);
        assertThat(list, notNullValue());
        assertThat(list, empty());

        list = ListUtils.emptyOnNull(List.of("1"));
        assertThat(list, notNullValue());
        assertThat(list.size(), is(1));
    }