Do you want to return `null` from a `toString()`? Maybe do this:

    return obj instanceof Identifiable ? ((Identifiable)obj).getId() : "unknown";