Fixing IDEA Java module dependencies