title: IntelliJ/Kotlin upgrade causing "Incompatible types" error?
body: <p>I updated IntelliJ and kotlin to their latest version a couple days ago.  I <em>assume</em> it is one of these two actions that is causing my issue.  IntelliJ started highlighting errors on my QueryCriteria statements that it didn’t previously:</p>
  <pre><code>QueryCriteria myQueryCriteria = new QueryCriteria.LinearStateQueryCriteria(null, singletonList(uuid), null, Vault.StateStatus.ALL);
  </code></pre>
  <p>Error:</p>
  <pre><code>Incompatible types. Found: 'net.corda.core.node.services.vault.QueryCriteria.LinearStateQueryCriteria', required: 'net.corda.core.node.services.vault.QueryCriteria'
  </code></pre>
  <p>I have always used this syntax because I then pass myQueryCriteria into a Query:</p>
  <pre><code>Vault.Page&lt;myContractState&gt; page = mockNodeA.getServices().getVaultService().queryBy(myContractState.class, myQueryCriteria);
  </code></pre>
  <p>The error doesn’t stop my tests from running.    I’ve tried changing several settings but came to the realization I am better to ask people that are more familiar with java/kotlin/intelliJ/Corda before I make the problem worse.</p>