\r
Layer0 L0 = Layer0.getInstance(graph);\r
Resource configuration = graph.getPossibleObject(r, L0.PartOf);\r
+ if(configuration == null) continue;\r
Resource possibleModule = graph.getPossibleObject(configuration, L0.PartOf);\r
+ if(possibleModule == null) continue;\r
if(graph.isInheritedFrom(possibleModule, SR.Module) && !searchedModuleTypes.contains(possibleModule)) {\r
searchedModuleTypes.add(possibleModule);\r
for(Resource model : graph.syncRequest(new ObjectsWithType(Simantics.getProject().get(), L0.ConsistsOf, SR.SysdynModel))) {\r