title: IntelliJ IDEA doesn't highlight the code which throws an exception - how to turn it on?
body: <p>I have a method:</p>
  
  <pre><code>private void test() throws NullPointerException {
          System.out.println("blabla");
          throw new NullPointerException();
      }
  </code></pre>
  
  <p>which throws NullPointerException but when I'm trying to invoke this method:</p>
  
  <pre><code>test();
  </code></pre>
  
  <p>IntelliJ IDEA doesn't warn me that it throws NullPointerException. IntelliJ should warn me about this, right?</p>
  
  <p>I found out that there are turned on/off inspections in Settings -> Editor -> Inspections but I couldn't find this inspection.</p>
  
  <p>How to turn it on?</p>
  
  <p>@edit</p>
  
  <p>Alright, I learnt that NullPointerException is a type of an exception which IntelliJ won't highlight because this is kind of critical error. Other exceptions like IOException are being highlighted. But still, is it possible to turn highlighting NullPointerException on?</p>