title: Android Parcelable in Kotlin
body: <p>I have such Java parcelable:</p>
  
  <pre><code>@SuppressWarnings("rawtypes")
  public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
      public KwerendaGraficzna createFromParcel(Parcel in) {
          return new KwerendaGraficzna(in);
      }
  
      public KwerendaGraficzna[] newArray(int size) {
          return new KwerendaGraficzna[size];
      }
  };
  </code></pre>
  
  <p>Now trying to implement it in Kotlin:</p>
  
  <pre><code>companion object {
      @SuppressWarnings("rawtypes")
      val CREATOR: Parcelable.Creator&lt;KwerendaGraficzna!&gt; = object : Parcelable.Creator&lt;KwerendaGraficzna!&gt; {
          override fun createFromParcel(`in`: Parcel): KwerendaGraficzna {
              return KwerendaGraficzna(`in`)
          }
  
          override fun newArray(size: Int): Array&lt;KwerendaGraficzna!&gt; {
              return arrayOfNulls&lt;KwerendaGraficzna!&gt;(size)
          }
      }
  }
  </code></pre>
  
  <p><code>arrayOfNulls</code> won't compile requires <code>KwerendaGraficzna</code> while it claims it received <code>KwerendaGraficzna?</code></p>
  
  <p>So how do I do it? </p>