title: How to use Lamba expression to make Java method calls less verbose in Kotlin?
body: <p>Can the below function be less verbose with a Lambda expression? How can I trim it down? It is calling the <code>FilenameFilter.accept()</code> Java method.</p>
  
  <pre><code>val files = File(SECTIONS_DIR).listFiles(object : FilenameFilter {
              override fun accept(dir: File?, filename: String): Boolean {
                  if (filename.matches(regex))
                      return true
                  else
                      return false
              }
          })
  </code></pre>