@Nullable
 public String getRootForPath(final File currentPath) {
   String convertedPath = currentPath.getAbsolutePath();
   convertedPath =
       (currentPath.isDirectory() && (!convertedPath.endsWith(File.separator)))
           ? convertedPath + File.separator
           : convertedPath;
   synchronized (myMonitor) {
     return myMapping.getRootForPath(convertedPath);
   }
 }