Optimize imports by using IntelliJ IDEA

I found not a few unused imports. Just fixed them by using IntelliJ IDEA's imports optimization feature.