docs: private String getCommonRootDir(String filePath, HashMap validFilePaths) {
          for (Iterator it = validFilePaths.entrySet().iterator(); it.hasNext();) {
              Map.Entry entry = (Map.Entry) it.next();
              String path = (String) ((entry).getKey());
              if (filePath.startsWith(path))
                  return (String) entry.getValue();
          }
  
          return null;
      }