ownerModule = (ModuleData)ownerDataNode.getData();
}
else if (ownerDataNode.getData() instanceof DependencyData) {
ownerModule = ((DependencyData)ownerDataNode.getData()).getOwnerModule();
}
<BUG>assert ownerModule != null;
if (mergedDependency instanceof ExternalProjectDependency) {</BUG>
final ExternalProjectDependency projectDependency = (ExternalProjectDependency)mergedDependency;
String moduleId = getModuleId(projectDependency);
Pair<DataNode<GradleSourceSetData>, ExternalSourceSet> projectPair = sourceSetMap.get(moduleId);

ownerModule = (ModuleData)ownerDataNode.getData();
}
else if (ownerDataNode.getData() instanceof DependencyData) {
ownerModule = ((DependencyData)ownerDataNode.getData()).getOwnerModule();
}
assert ownerModule != null;
DataNode<? extends ExternalEntityData> depOwnerDataNode = null;
if (mergedDependency instanceof ExternalProjectDependency) {
final ExternalProjectDependency projectDependency = (ExternalProjectDependency)mergedDependency;
String moduleId = getModuleId(projectDependency);
Pair<DataNode<GradleSourceSetData>, ExternalSourceSet> projectPair = sourceSetMap.get(moduleId);
