String (String file, @NotNull final VirtualFile baseDir) { if (SystemInfo.isWindows) { file = file.replace('\\', '/'); } final String basePath = baseDir.getPath(); if (!file.startsWith(basePath)) { return file; } else if (file.equals(basePath)) return "."; return file.substring(baseDir.getPath().length() + 1); }