boolean (final VirtualFile file) { PackageElement element = getValue(); final Module module = element == null ? null : element.getModule(); if (module == null) { return ModuleUtilCore.projectContainsFile(getProject(), file, isLibraryElement()); } return ModuleUtilCore.moduleContainsFile(module, file, isLibraryElement()); }