title: How create list with generic argument in Kotlin
body: <p>I have a interface:</p>
  
  <pre><code>interface SomeInterface&lt;T&gt;{
  
  }
  </code></pre>
  
  <p>In java i can declare list as follows:</p>
  
  <p><code>List&lt;SomeInterface&gt; list = new ArrayList&lt;&gt;();</code></p>
  
  <p>How to write the same in Kotlin? If i try this:</p>
  
  <pre><code>var list = ArrayList&lt;PreferenceSerializer&gt;()
  </code></pre>
  
  <p>I get an error
  <img src="https://i.stack.imgur.com/MtAjY.png" alt="an error"></p>