docs: void maskClassfiles(final int classpathIdx, final Set<String> classpathRelativePathsFound, final LogNode log) {
          if (!scanSpec.performScan) {
              // Should not happen
              throw new IllegalArgumentException("performScan is false");
          }
          // Find relative paths that occur more than once in the classpath / module path.
          // Usually duplicate relative paths occur only between classpath / module path elements, not within,
          // but actually there is no restriction for paths within a zipfile to be unique, and in fact
          // zipfiles in the wild do contain the same classfiles multiple times with the same exact path,
          // e.g.: xmlbeans-2.6.0.jar!org/apache/xmlbeans/xml/stream/Location.class
          final List<Resource> whitelistedClassfileResourcesFiltered = new ArrayList<>(
                  whitelistedClassfileResources.size());
          boolean foundMasked = false;
          for (final Resource res : whitelistedClassfileResources) {
              final String pathRelativeToPackageRoot = res.getPath();
              // Don't mask module-info.class or package-info.class, these are read for every module/package
              if (!pathRelativeToPackageRoot.equals("module-info.class")
                      && !pathRelativeToPackageRoot.endsWith("/module-info.class")
                      && !pathRelativeToPackageRoot.equals("package-info.class")
                      && !pathRelativeToPackageRoot.endsWith("/package-info.class")
                      // Check if pathRelativeToPackageRoot has been seen before
                      && !classpathRelativePathsFound.add(pathRelativeToPackageRoot)) {
                  // This relative path has been encountered more than once;
                  // mask the second and subsequent occurrences of the path
                  foundMasked = true;
                  if (log != null) {
                      log.log(String.format("%06d-1", classpathIdx), "Ignoring duplicate (masked) class "
                              + JarUtils.classfilePathToClassName(pathRelativeToPackageRoot) + " found at " + res);
                  }
              } else {
                  whitelistedClassfileResourcesFiltered.add(res);
              }
          }
          if (foundMasked) {
              // Remove masked (duplicated) paths. N.B. this replaces the concurrent collection with a non-concurrent
              // collection, but this is the last time the collection is changed during a scan, and this method is
              // run from a single thread.
              whitelistedClassfileResources = whitelistedClassfileResourcesFiltered;
          }
      }