title: Lambda argument should be moved out of parentheses
body: <p>IntelliJ gives the following complaint:</p>
  
  <blockquote>
    <p>Lambda argument should be moved out of parentheses</p>
  </blockquote>
  
  <pre><code>val profile = loadProfiles()
  profile.sortedWith(Comparator({ profile1, profile2 -&gt;
                  if (profile1.age &gt; profile2.age) return@Comparator 1
                  if (profile1.age &lt; profile2.age) return@Comparator -1
                  return@Comparator 0
              }))
  
  data class Developer(var age: Int)
  
  fun loadProfiles(): List&lt;Developer&gt; {
      val listOfNumber = listOf&lt;Developer&gt;(Developer(2), Developer(5), Developer(3))
  
      return listOfNumber
  }
  </code></pre>
  
  <p>How should I format the above to get rid of the complaint? Also, the sorting code doesn't sort. What is causing the problem?</p>