MemberChooserObject () { final PyElement element = (PyElement)getPsiElement(); final PyClass parent = PsiTreeUtil.getParentOfType(element, PyClass.class, false); assert (parent != null); return new PyMethodMember(parent); }