code: public static String checkHasText(String argument, String errorMessage) {
          if (argument == null || argument.isEmpty()) {
              throw new IllegalArgumentException(errorMessage);
          }
  
          return argument;
      }
docs: Tests if a string contains text.
  
  @param argument     the string tested to see if it contains text.
  @param errorMessage the errorMessage
  @return the string argument that was tested.
  @throws java.lang.IllegalArgumentException if the string is empty