If in a class there is a reference to another class form another module, but no dependency on that module is define, it is possible to execute a quickfix "Add dependency on module.." - very handy
In a maven project, it should add <dependency> section in pom.xml