public static @NlsSafe @Nullable String getNSErrorText(@Nullable ID error) {
    if (error == null || error.intValue() == 0) return null;

    String description = toStringViaUTF8(invoke(error, "localizedDescription"));
    String recovery = toStringViaUTF8(invoke(error, "localizedRecoverySuggestion"));
    if (recovery != null) description += "\n" + recovery;
    return StringUtil.notNullize(description);
  }
public static @NlsSafe @Nullable String getNSErrorText(@Nullable ID error)