@Contract(mutates = "param1")
  public static void removeDuplicates(@NotNull Collection<?> collection) {
    Set<Object> collected = new HashSet<>();
    collection.removeIf(t -> !collected.add(t));
  }
@Contract(mutates = "param1")
  public static void removeDuplicates(@NotNull Collection<?> collection)