DirectoryInfo (@NotNull VirtualFile file) { return new DirectoryInfo() { @Override public @Nullable VirtualFile getContentRoot() { return myWorkspaceFileIndex.getContentFileSetRoot(file, true); } }; }