boolean (@NotNull PsiDirectory element) { final Module module = ModuleUtilCore.findModuleForPsiElement(element); return module == null || (PyUtil.getSourceRoots(module).contains(element.getVirtualFile())); }