docs: public void checkModuleSelectionList(List<String> moduleNames, String rfsAbsPath, boolean forDeletion)
      throws CmsIllegalArgumentException, CmsConfigurationException {
  
          Map<String, List<String>> moduleDependencies = buildDepsForAllModules(rfsAbsPath, forDeletion);
          Iterator<String> itMods = moduleNames.iterator();
          while (itMods.hasNext()) {
              String moduleName = itMods.next();
              List<String> dependencies = moduleDependencies.get(moduleName);
              if (dependencies != null) {
                  List<String> depModules = new ArrayList<String>(dependencies);
                  depModules.removeAll(moduleNames);
                  if (!depModules.isEmpty()) {
                      throw new CmsIllegalArgumentException(
                          Messages.get().container(
                              Messages.ERR_MODULE_SELECTION_INCONSISTENT_2,
                              moduleName,
                              depModules.toString()));
                  }
              }
          }
      }