div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val text = "contact@kotools.org"<br>val emailAddress: EmailAddress? = EmailAddress.orNull(text)<br>assertNotNull(emailAddress)</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></details>
<br><p class="paragraph">This method is not available from Java code due to i