String () { PyPsiUtils.assertValid(PyClassImpl.this); final StringBuilder result = new StringBuilder(notNullize(getName(), PyNames.UNNAMED_ELEMENT)); final List<String> superClassesText = getSuperClassesText(); if (!superClassesText.isEmpty()) { result.append("("); result.append(join(superClassesText, expr -> notNullize(expr, PyNames.UNNAMED_ELEMENT), ", ")); result.append(")"); } return result.toString(); }