code: public static void doesNotContain(@Nullable final String textToSearch, final String substring,
        final Supplier<String> messageSupplier) {
      if (StringUtils.hasLength(textToSearch) && StringUtils.hasLength(substring)
          && textToSearch.contains(substring)) {
        throw new IllegalArgumentException(Assert.nullSafeGet(messageSupplier));
      }
    }
docs: Assert that the given text does not contain the given substring.
  
  <pre class="code">
  Assert.doesNotContain(name, forbidden, () -&gt; "Name must not contain '" + forbidden + "'");
  </pre>
  
  @param textToSearch the text to search
  @param substring the substring to find within the text
  @param messageSupplier a supplier for the exception message to use if the assertion fails
  @throws IllegalArgumentException if the text contains the substring
  @since 5.0