public static boolean isCollectionEmptyOrNull(Collection<?> collection) {
    return collection == null || collection.isEmpty();
  }
@Test
  public void testCollectionsNullOrEmpty() {
    Assert.assertTrue(ObjectHelper.isCollectionEmptyOrNull(null));
    Assert.assertTrue(ObjectHelper.isCollectionEmptyOrNull(Collections.emptyList()));
    Assert.assertFalse(ObjectHelper.isCollectionEmptyOrNull(Collections.singletonList("abc")));
  }