title: getInstance() Unresolved Kotlin
body: <p>Showing <strong><code>getInstance()</code></strong> unresolved reference when ever call.</p>
  
  <pre><code>class GlobalHolder {
  
      private var pickerManager: PickerManager? = null
  
      private val ourInstance = GlobalHolder()
  
      fun getInstance() {
          return ourInstance
      }
  
      private fun GlobalHolder(){}
  
  
      fun getPickerManager(): PickerManager? {
          return pickerManager
      }
  
      fun setPickerManager(pickerManager: PickerManager) {
          this.pickerManager = pickerManager
      }
  }
  </code></pre>
  
  <p><strong>Call</strong></p>
  
  <pre><code>   lateinit var pickerManager: PickerManager
      pickerManager=GlobalHolder.getInstance().getPickerManager()
  </code></pre>
  
  <p><strong>FYI</strong></p>
  
  <p>This is original Java class</p>
  
  <pre><code>public class GlobalHolder {
  
      private PickerManager pickerManager;
  
      private static GlobalHolder ourInstance = new GlobalHolder();
  
      public static GlobalHolder getInstance() {
          return ourInstance;
      }
  
      private GlobalHolder() {
      }
  
  
      public PickerManager getPickerManager() {
          return pickerManager;
      }
  
      public void setPickerManager(PickerManager pickerManager) {
          this.pickerManager = pickerManager;
      }
  }
  </code></pre>