String (@NotNull DataContext dataContext) { final VirtualFile baseDir = PlatformCoreDataKeys.PROJECT_FILE_DIRECTORY.getData(dataContext); if (baseDir == null) { return null; } VirtualFile dir = getVirtualDirOrParent(dataContext); if (dir == null) return null; return FileUtil.getRelativePath(VfsUtilCore.virtualToIoFile(baseDir), VfsUtilCore.virtualToIoFile(dir)); }