void (@NotNull Map<String, DataNode<ModuleData>> includedModulesPaths, @NotNull ModuleDependencyData moduleDependencyData) { ModuleData target = moduleDependencyData.getTarget(); DataNode<ModuleData> moduleDataResolvedForMainBuild = includedModulesPaths.get(target.getLinkedExternalProjectPath()); if (moduleDataResolvedForMainBuild != null && target instanceof GradleSourceSetData) { String targetModuleName = target.getModuleName(); DataNode<GradleSourceSetData> nonBuildSrcModule = find(moduleDataResolvedForMainBuild, GradleSourceSetData.KEY, node -> targetModuleName.equals(node.getData().getModuleName())); if (nonBuildSrcModule != null) { moduleDependencyData.setTarget(nonBuildSrcModule.getData()); } } }