String () { final ProjectFileIndex index = ProjectRootManager.getInstance(myProject).getFileIndex(); VirtualFile directory = myVDirectory; VirtualFile contentRoot = index.getContentRootForFile(directory); if (Comparing.equal(directory, contentRoot)) { return ""; } if (contentRoot == null) { return toString(); } return VfsUtilCore.getRelativePath(directory, contentRoot, '/'); }