void (JpsModule main, JpsModule dep) { JpsModuleDependency dependency = main.getDependenciesList().addModuleDependency(dep); JpsJavaExtensionService.getInstance().getOrCreateDependencyExtension(dependency).setExported(true); }