title: How to disable folding of `: Unit =` in scala procedures in Intellij IDEA?
body: <p>In recent versions of Intellij IDEA, when writing a scala method which returns <code>Unit</code>(a.k.a. a procedure), IDEA will fold the <code>: Unit =</code> part, so that it displays like the so-called "procedure syntax". Here's what it looks like :</p>
  
  <pre><code>def myMethod(): Unit = {
    // do something
  }
  </code></pre>
  
  <p>gets folded by default to :</p>
  
  <pre><code>def myMethod()  {
    // do something
  }
  </code></pre>
  
  <p>I understand the point, since the procedure syntax is slated for deprecation but some people still like it, I guess it's a good compromise for them. However, for those of us who don't like the procedure syntax, I wasn't able to find a setting to disable that code folding by default. Preferences > Editor > Code folding does show some scala-specific settings for which code foldings should be collapsed by default, but the only one I have checked is "Shell comments (scala script)".</p>
  
  <p>Does someone know how to disable this feature? Or is it currently impossible?</p>