In Eclipse, while coding in Java and press Ctrl + Shift + O auto import all the Classes automatically. In NetBeans, this is done with
Seems like IntelliJ IDEA will import missed class automatically, and you can import them by hit Alt + Enter manually.