I use the or.apache.commons.lang.StringUtils class a lot for String validation. However, if I type "StringUtils" quickly, IDEA auto-selects the org.apache.shared_tomahawk.util.StringUtils, which happens to be the top one in a list of about 6 StringUtils classes visible to the class I'm working on.
I don't recall this happening with earlier versions of IDEA.
Correcting this is a pain as there's no "undo" for the completion (as far as I know). I have to scroll up to the imports section and delete the im port. To avoid this, I've found myself commenting out the line (ctrl-/), optimizing imports for the file (ctrl-alt-o), then uncommenting the line to pick the imported class.
A) Is there anything I can do to cause IDEA not to picking the top entry in the list of possible imports? I searched the settings for anthing import related, but didn't see a setting to do this.
B) Once the import has been added, is there a way to undo it?