title: Call Kotlin high-order function from Java?
body: <p>Let's say that we have a callback in Kotlin: </p>
  
  <pre><code>object Utils {
  internal var callback: (() -&gt; Unit)? = null
  }
  </code></pre>
  
  <p>And then we call that callback from a Java class :</p>
  
  <pre><code>Utils.INSTANCE.setCallback$app_debug(new Function0&lt;Unit&gt;() {
          @Override
          public Unit invoke() {
              return null;
         }
      });
  </code></pre>
  
  <p>So i have to questions :</p>
  
  <ol>
  <li>How can i convert the <code>Unit</code> to <code>void</code> because i'm forced to return a value ?</li>
  <li>How can i change the name of the callback setter than <code>setCallback$app_debug</code> ?</li>
  </ol>