title: How to prevent imports of packages from all classes except one class?
body: <p>I migrate my code from Common Collection 3 to Common Collection 4
  After the migration I want to prevent imports of Common Collection 3 packages in all classes except one class.</p>
  
  <p>(Unfortunately I do not have time to migrate this class).</p>
  
  <p>I have found this but I can not find how to configure exclude list:
  <a href="http://checkstyle.sourceforge.net/config_imports.html#IllegalImport" rel="nofollow">http://checkstyle.sourceforge.net/config_imports.html#IllegalImport</a></p>
  
  <p>Is it possible to configure checkstyle to exclude classes?</p>
  
  <p>Other tools that can do it?</p>