boolean (@NotNull VirtualFile root) { VirtualFile parent = root.getParent(); if (parent == null) { return false; } WorkspaceFileInternalInfo fileInfo = myWorkspaceFileIndex.getFileInfo(parent, false, true, false, false, false); return fileInfo.findFileSet(this::hasRecursiveRootFromModuleContent) != null; }