I need to check that use extension is used for Closable interface.
private val file = File("path")
val fileOutputStream = file.outputStream().write(999) //WARNING
private val file = File("path")
val fileOutputStream = file.outputStream().use { //NORMAL
// Some methods
}
I started off by looking for a method that returned type is inherits from Closable (in the example above is outputStream()) . How do I find the method that references on outputStream(), then to find its name?