Eclipse has checkstyle plugin which points out the coding practices which are not good. Is there some tool or someway in which some of those issues can be automatically fixed?  

 For example, let's say cleanup unused imports. If the tool can automatically visit the whole project and remove the unused imports?