Which IDE do you use? Most of us use eclipse and using the default Organize imports behavior (Ctrl-Shift-O) would undo the changes made to the imports. Probably best to avoid the same...