Reports situations in which a Java 9 module A requires a Java 9 module B, but A doesn't use any package from B. Also, the directive that requires the java.base module is redundant.

The fix deletes the requires directive for such redundant dependencies. If the deleted dependency re-exported the modules that are actually used, the fix adds a requires directive for these modules.

New in 2017.1