docs: public static <T> Collection<T> checkCollectionNotEmpty(final Collection<T> value,
                                                              final String valueName) {
          if (value == null) {
              throw new NullPointerException(valueName + " must not be null");
          }
          if (value.isEmpty()) {
              throw new IllegalArgumentException(valueName + " is empty");
          }
          return value;
      }