<p>I am trying to use named arguments for the method because it has quite a lot of arguments. I am using java-client for Kubernetes API. However, I get <code>Cannot resolve symbol</code> compile error. I am writing the code in Intellij IDEA, could it be some plugins problem?</p>

<p>Here is the code:</p>

<pre><code>  def createWatchOnPodsCalls() = {
    client.getHttpClient.setReadTimeout(0, TimeUnit.MILLISECONDS)
    val watchEvents: Watch[V1Namespace]  = Watch.createWatch(client,
apiInstance.listClusterCustomObjectCall(group=null, version=null, plural=null, pretty="true", labelSelector = null, resourceVersion = null, watch = false, progressListener = null, progressRequestListener = null),
      new TypeToken[Watch.Response[V1Namespace]]{}.getType)
    watchEvents
  }
</code></pre>

Cassie
<p>Scala 2.12 <a href="https://github.com/scala/scala/pull/4735" rel="nofollow noreferrer">supports named parameters for Java if they are available</a>, but <a href="https://docs.oracle.com/javase/tutorial/reflect/member/methodparameterreflection.html" rel="nofollow noreferrer">by default Java is compiled without storing parameter names</a>. So most Java libraries don't have them (because the benefit in Java itself is minimal), including even <a href="https://contributors.scala-lang.org/t/proposal-named-parameters-for-java-apis/812/6" rel="nofollow noreferrer">the standard library</a> (unless that has changed recently).</p>
