public static boolean isEmpty(Collection collection) {
        return collection == null || collection.isEmpty();
    }
@Test
    public void testIsEmpty() {
        assertTrue(isEmpty(Collections.emptyList()));
        assertFalse(isEmpty(singletonList(23)));
    }