ils>
<summary>
    <b>Calling from Kotlin</b>
</summary><p class="paragraph">Here's an example for calling this method from Kotlin code:</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val map: Map&lt;Char, Int&gt; = mapOf('a' to 1, 'b' to 2)<br>val isSuccess: Boolean = try {<br>    NotEmptyMap.create(map)<br>    true<br>} catch (exception: IllegalArgumentException) {<br>    false<br>}<br>assertTrue(isSuccess)</code></pre><span class="top-right-position"><span class="copy-