if (projectConfig == null) return result;
JpsJavaExtensionService.dependencies(module).recursively().productionOnly().processModules(new Consumer<JpsModule>() {
@Override
public void consume(JpsModule module) {
MavenModuleResourceConfiguration moduleConfig = projectConfig.moduleConfigurations.get(module.getName());
if (moduleConfig != null) {
Map<String, String> properties = moduleConfig.properties;
for (Map.Entry<String, String> entry : properties.entrySet()) {
result.setProperty(entry.getKey(), entry.getValue());
}