String (@NotNull final DataContext dataContext) { final Project project = CommonDataKeys.PROJECT.getData(dataContext); final VirtualFile file = CommonDataKeys.VIRTUAL_FILE.getData(dataContext); if (project == null || file == null) return null; final VirtualFile contentRoot = ProjectFileIndex.getInstance(project).getContentRootForFile(file); return contentRoot == null ? null : FileUtil.toSystemDependentName(contentRoot.getPath()); }