code: public static <T extends Collection<?>> T requireNonNullNorEmpty(T collection, String message) {
          if (requireNonNull(collection).isEmpty()) {
              throw new IllegalArgumentException(message);
          }
          return collection;
      }
docs: Require a collection to be neither null, nor empty.
  
  @param collection collection
  @param message error message
  @param <T> Collection type
  @return collection