String (final VirtualFile baseDir, final String dirName) { if (baseDir != null) { if (!Comparing.equal(myVDirectory, baseDir)) { if (VfsUtil.isAncestor(baseDir, myVDirectory, false)) { return VfsUtilCore.getRelativePath(myVDirectory, baseDir, '/'); } else { return myVDirectory.getPresentableUrl(); } } } else { return myVDirectory.getPresentableUrl(); } return dirName; }