public static <T> SetUpdateState remove(@NotNull T element, @NotNull Set<T> set) {
    return set.remove(element) ? REMOVED : IGNORED;
  }
public static <T> SetUpdateState remove(@NotNull T element, @NotNull Set<T> set)