code: public static boolean checkCompatibleModuleResources(CmsModule installedModule, CmsModule newModule) {
  
          if (!(installedModule.hasOnlySystemAndSharedResources() && newModule.hasOnlySystemAndSharedResources())) {
              String oldSite = installedModule.getSite();
              String newSite = newModule.getSite();
              if (!((oldSite != null) && (newSite != null) && CmsStringUtil.comparePaths(oldSite, newSite))) {
                  return false;
              }
  
          }
          for (String oldModRes : installedModule.getResources()) {
              for (String newModRes : newModule.getResources()) {
                  if (CmsStringUtil.isProperPrefixPath(oldModRes, newModRes)) {
                      return false;
                  }
              }
          }
          return true;
  
      }
docs: Checks whether the module resources and sites of the two module versions are suitable for updating.<p>
  
  @param installedModule the installed module
  @param newModule the module to import
  
  @return true if the module resources are compatible