boolean (@NotNull PsiFile file) { for (PyCustomPackageIdentifier customPackageIdentifier : PyCustomPackageIdentifier.EP_NAME.getExtensions()) { if (customPackageIdentifier.isPackageFile(file)) { return true; } } return PyNames.INIT_DOT_PY.equals(file.getName()); }