String () { if (myQualifiedName != null) { return QualifiedName.fromDottedString(myQualifiedName).getLastComponent(); } final List<String> classNames = new ArrayList<>(myTypesToMimic.size()); for (PyClassLikeType type : myTypesToMimic) { String name = type.getName(); if (name == null && type instanceof PyClassType) { name = ((PyClassType)type).getPyClass().getName(); } if (name != null) { classNames.add(name); } } return PyPsiBundle.message("custom.type.mimic.name", StringUtil.join(classNames, ",")); }