12/21/2016, 8:44 AM
Yes. If you are using frameworks with conflicting names that might be another reason. However, IDEA is pretty smart about them and will insert and keep appropriate explicit imports in case of name conflicts. For example, if you are writing AWT application (I know you don’t, just an example), and you have
import java.awt.*
but you actually don’t use AWT List in your code, but have
import kotlin.collections.List
, then IDEA will not optimize this import away, despite the fact that there in an implict
import kotlin.collections.*
in every Kotlin file. Frankly, I have not run into naming conflicts like in last 5-10 years (and I was not using AWT), but I was not writing a lot of framework-dependent code, so your mileage may vary.