boolean (@NotNull PyFunction function) { final PyStatementList statementList = function.getStatementList(); final PyStatement[] statements = statementList.getStatements(); if (statements.length == 0) { return true; } else if (statements.length == 1) { if (isStringLiteral(statements[0]) || isPassOrRaiseOrEmptyReturnOrEllipsis(statements[0])) { return true; } } else if (statements.length == 2) { if (isStringLiteral(statements[0]) && (isPassOrRaiseOrEmptyReturnOrEllipsis(statements[1]))) { return true; } } return false; }