title: Intellij idea module dependency
body: <p>Problem description for short: in a project has multiple modules, one of them import classes from other modules. Now when I run unit test in this module, the compilation fails because they can not find imported classes. However in project structure, the module dependencies are in the dependency list (blue circled in the following picture). How to solve this cannot find classes from other modules problem in intellij idea?</p>
  
  <p><a href="https://i.stack.imgur.com/03mFr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/03mFr.png" alt="enter image description here"></a></p>