boolean () { final PyFunctionStub stub = getStub(); if (stub != null) { return stub.onlyRaisesNotImplementedError(); } final PyStatement[] statements = getStatementList().getStatements(); return statements.length == 1 && isRaiseNotImplementedError(statements[0]) || statements.length == 2 && PyUtil.isStringLiteral(statements[0]) && isRaiseNotImplementedError(statements[1]); }