code: protected Map<String, Set<Version>> getModuleVersionsToLoad(RF2Input in) {
          Map<String, Set<Version>> res = new HashMap<>();
          for(ModuleInfo mi : in.getModules()) {
              String moduleId = mi.getId();
              Set<Version> versionsToLoad = res.get(moduleId);
              if(versionsToLoad == null) {
                  versionsToLoad = new HashSet<>();
                  res.put(moduleId, versionsToLoad);
              }
              for(Version v : mi.getVersions()) {
                  versionsToLoad.add(v);
              }
          }
  
          return res;
      }
docs: Determines which modules and versions should be loaded based on the {@link Inputs} object. Returns a {@link Map}
  with the module ids as keys and the set of versions to import as values.
  
  @return