docs: public static String checkNonEmptyString(final String string, final String name) throws IllegalArgumentException {
      if (string == null || string.isEmpty()) {
        throw new IllegalArgumentException("Expecting a non-empty string for " + name);
      }
      return string;
    }