public static <T> SetUpdateState add(@NotNull T element, @NotNull Set<T> set) {
    return set.add(element) ? ADDED : update(element, set);
  }
public static <T> SetUpdateState add(@NotNull T element, @NotNull Set<T> set)