public static @NotNull <T> List<T> removeSelectedItems(@NotNull JList<T> list) {
    return removeSelectedItems(list, null);
  }
public static @NotNull <T> List<T> removeSelectedItems(@NotNull JList<T> list)