@NotNull private String renderTypeName(@NotNull TypeConstructor typeConstructor) { ClassifierDescriptor cd = typeConstructor.getDeclarationDescriptor(); if (cd instanceof TypeParameterDescriptor) { return renderName(cd.getName()); } else if (cd instanceof ClassDescriptor) { return renderClassName((ClassDescriptor) cd); } else { assert cd == null : "Unexpected classifier: " + cd.getClass(); return typeConstructor.toString(); } }
@Override public String toString() { return constructor.toString(); }