docs: public List<ModuleRef> getModules() {
          if (closed.get()) {
              throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed");
          }
          final List<ModuleRef> moduleRefs = new ArrayList<>();
          for (final ClasspathElement classpathElement : classpathOrder) {
              if (classpathElement instanceof ClasspathElementModule) {
                  moduleRefs.add(((ClasspathElementModule) classpathElement).getModuleRef());
              }
          }
          return moduleRefs;
      }