public static <T> boolean isNullOrEmpty(Collection<T> collection) {
        if (collection == null) return true;
        return collection.isEmpty();
    }
@Test
    void isNullOrEmptyIsFalseForNotEmptyArray() {
        assertThat(isNullOrEmpty(new String[]{"item1", "item2"})).isFalse();
    }