@SuppressWarnings("unchecked")
  public static @NonNull <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element) {
    return appendElement(kind, array, element, false);
  }
Adds value to given array if not already present, providing set-like behavior.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/ArrayUtils.java