If multiple packages contain given Class you need to hover over a Class name and press import link.
Then you need to select package from which you want to import the Class.
Hover over Class - Import
Select Import
If multiple packages contain given Class you need to hover over a Class name and press import link.
You will then get a list of packages that contain Class with that name.
You can now exclude some of these packages from Auto Import by clicking on the arrow on the right.
This will give you options to exclude just the Class or the whole package or just part of package hierarchy.
When you exclude Class there will be a popup showing General - Auto Import Settings with the list of all excluded classes.
You can use these Settings to put back the classes as shown next.
Exclude Import