private File findModuleInfoFile(JpsModule module, boolean forTests) {
    var rootType = forTests ? JavaSourceRootType.TEST_SOURCE : JavaSourceRootType.SOURCE;

    for (var root : module.getSourceRoots()) {
      if (rootType.equals(root.getRootType())) {
        var file = new File(JpsPathUtil.urlToOsPath(root.getUrl()), MODULE_INFO_FILE);
        if (file.isFile() && !myExcludes.isExcluded(file)) {
          return file;
        }
      }
    }

    return NULL_FILE;
  }
private File findModuleInfoFile(JpsModule module, boolean forTests)