I use netbeans too and it behaves just like eclipse it proposes potential imports and you import one.
Till now I haven't had this problem of direct conflict with java(x).* packages. Dave are you referring to a sun.* package? Could you please give a specific example? Checkstyle can check for following things for import statements see http://checkstyle.sourceforge.net/config_imports.html None of them seems to fit the bill for our usecase. Cheers Piyush

