code: public static void hasLength(String text, String message) {
          if (!Strings.hasLength(text)) {
              throw new IllegalArgumentException(message);
          }
      }
docs: Assert that the given String is not empty; that is,
  it must not be <code>null</code> and not the empty String.
  <pre class="code">Assert.hasLength(name, "Name must not be empty");</pre>
  @param text the String to check
  @param message the exception message to use if the assertion fails
  @see Strings#hasLength