String (Project project, VirtualFile file) { final String path = project.getBasePath(); assert path != null; final String result = FileUtil.getRelativePath(path, file.getPath().replace('/', File.separatorChar), File.separatorChar); assert result != null; return result; }