Given the following configuration:
https://gist.github.com/schmist/c4c205bde4bb2b085e71688c3ef10d83
import java.util.Date in Main.kt is not recognized as an unused import as long as it is used in class L. Renaming class L to N (so that it appears alphabetically after file Main.kt) fixes the issue.