boolean (PsiElement @NotNull [] elements) { if (elements.length == 1) { final PsiDirectory pyPackage = getPackageDir(elements[0]); return pyPackage != null && !isSpecialDirectory(pyPackage); } return false; }