IntelliJ IDEA provides an additional way to explore and change module dependencies using UML class diagram of a module.

To change module dependencies
  1. Right-click a module node in the Project tool window, or in the Navigation bar.
  2. On the context menu, choose Diagrams | Show Diagram.
  3. Press ⌘N, ⌃⏎, ⌘N or ⌃⏎⌃N, ⌃⏎, ⌃N or ⌃⏎⌘N, ⌃⏎, ⌘N or ⌃⏎^ N, ⌥ Insert, ⌃N or ⌃N⌥ Insert.
  4. Choose Add Dependency on the pop-up menu.