--- a/metric-providers/org.ossmeter.metricprovider.rascal/modules/NOM.rsc
+++ b/metric-providers/org.ossmeter.metricprovider.rascal/modules/NOM.rsc
@@ -4,13 +4,14 @@
 import List;
 import String;
 import Map;
+import Manager;
 
 int numberOfMethods(loc cl, M3 model) = size([ m | m <- model@containment[cl], isMethod(m)]);
 
 map[str class, int nom] getNOM(M3 fileM3) {
-  return (replaceAll(replaceFirst(cl.path, "/", ""), "/", "."):numberOfMethods(cl, fileM3) | <cl,_> <- fileM3@containment, isClass(cl));
+  return (replaceAll(replaceFirst(cl.path, "/", ""), "/", "."):numberOfMethods(cl, fileM3.model) | <cl,_> <- fileM3.model@containment, isClass(cl));
 }
 
-map[str class, int nom] getNOM(loc file) {
+map[str class, int nom] getNOM(unknownFileType(int lines)) {
   return ("": -1);
 }