boolean (@Nullable PsiElement element) { final PyFunction function = as(element, PyFunction.class); return function != null && PyNames.NEW.equals(function.getName()) && function.getContainingClass() != null; }