ContentEntry (@NotNull ModuleRootModel rootModel, @NotNull VirtualFile file) { return ContainerUtil.find(rootModel.getContentEntries(), object -> { VirtualFile entryRoot = object.getFile(); return entryRoot != null && VfsUtilCore.isAncestor(entryRoot, file, false); }); }