title: Can't call Kotlin's extension property from java
body: <p>Android Studio 3.4</p>
  
  <p>Here my kotlin class:</p>
  
  <pre><code>open class DefaultRestClientCallback&lt;T&gt; : Callback&lt;T&gt; {
  
      val Response&lt;*&gt;.errorResponse: ErrorResponse
          get() = ErrorUtils.parseError(this)
  
  
  
      override fun onResponse(call: Call&lt;T&gt;, response: Response&lt;T&gt;) {
  </code></pre>
  
  <p>as you can see here I has property extension:</p>
  
  <pre><code>errorResponse
  </code></pre>
  
  <p>From another Kotlin class (Test.kt) I call this like this:</p>
  
  <pre><code>class Test {
  
  
      fun test() {
          TransportService.login("email",
              "pass", object : DefaultRestClientCallback&lt;JsonElement&gt;() {
  
                  override fun onTangoResponse(response: Response&lt;*&gt;) {
                      val isSuccessful = response.isSuccessful
                      if (isSuccessful) { // code &gt;= 200 &amp;&amp; code &lt; 300;
                      } else {
                          val errorResponse = response.errorResponse
                      }
                  }
              })
      }
  }
  </code></pre>
  
  <p>Nice it's work fine.</p>
  
  <p>Now I need to call extension property from java file (<strong>which I'm not able to convert to Kotlin for now</strong>).
  I try this:</p>
  
  <pre><code>TransportService.login("email", "pass", new DefaultRestClientCallback&lt;JsonElement&gt;() {
  
      @Override
      public void onTangoResponse(@NotNull Response&lt;?&gt; response) {
          boolean isSuccessful = response.isSuccessful();
          if (isSuccessful) { // code &gt;= 200 &amp;&amp; code &lt; 300;
          } else {
              ErrorResponse errorResponse = response.errorResponse();
          }
      }
  });
  </code></pre>
  
  <p>}</p>
  
  <p>But I get compile error in this line:</p>
  
  <pre><code> ErrorResponse errorResponse = response.errorResponse();
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>Cannot resolve method 'errorResponse()'
  </code></pre>