title: Best way to "negate" an instanceof
body: <p>I was thinking if there exists a better/nicer way to negate an <code>instanceof</code> in Java.
  Actually, I'm doing something like:</p>
  <pre><code>if(!(myObject instanceof SomeClass)) { /* do Something */ }
  </code></pre>
  <p>But I think that a &quot;beautiful&quot; syntax to do this should exist.</p>
  <p>Does anyone know if it exists, and how the syntax look like?</p>
  <hr />
  <p><strong>EDIT:</strong>
  By beautiful, I might say something like this:</p>
  <pre><code>if(myObject !instanceof SomeClass) { /* do Something */ } // compilation fails
  </code></pre>