title: How to make a Kotlin generic method static?
body: <p>I know that it is possible to write a static generic method in Java. </p>
  
  <p>I tried to implement my own solution in Kotlin but I failed.</p>
  
  <pre><code>class Wrapper&lt;T&gt;
  {
      companion object &lt;T&gt; // error: Type parameters are not allowed for objects.
      {
          private var value: T? = null
  
          // implement some methods
      }
  }
  </code></pre>
  
  <p>Is there any way how to implement a static generic method in Kotlin?</p>