boolean (@NotNull VirtualFile file) { Module module = getValue(); if (module == null || module.isDisposed()) return false; if (file.getFileSystem() instanceof JarFileSystem) { VirtualFile local = JarFileSystem.getInstance().getVirtualFileForJar(file); if (local == null) return false; file = local; } for (VirtualFile root : ModuleRootManager.getInstance(module).getContentRoots()) { if (VfsUtilCore.isAncestor(root, file, false)) return true; } return false; }