title: How to access Kotlin companion object in Java?
body: <p>I convert one of my Java class to Kotlin and the class as below.</p>
  
  <pre><code>class MainApplication : Application() {
      companion object {
          operator fun get(context: Context): MainApplication {
              return context.applicationContext as MainApplication
          }
      }
  }
  </code></pre>
  
  <p>It has a static function <code>get</code>.</p>
  
  <p>I still have a Java function accessing it.</p>
  
  <pre><code>MainApplication application = MainApplication.get(mContext);
  </code></pre>
  
  <p>It was good when MainApplication is in Java. But not when MainApplication in Kotlin, the above code error</p>
  
  <pre><code>Error:(27, 54) error: cannot find symbol method get(Context)
  </code></pre>
  
  <p>How could I access <code>get</code> in my Java code above?</p>