title: Is there a way to reference the Java class for a Kotlin top-level function?
body: <p>I want to load a resource in a top level function using <code>Class.getResourceAsStream()</code>.</p>
  
  <p>Is there any way to get a reference to the class that the top level function will be compiled into so that I can write, for example</p>
  
  <pre><code>val myThing = readFromStream(MYCLASS.getResourceAsStream(...))
  </code></pre>