public static @NotNull <T> List<T> removeSelectedItems(@NotNull JList<T> list, @Nullable Condition<? super T> condition) {
    int[] indices = list.getSelectedIndices();
    return removeIndices(list, indices, condition);
  }
public static @NotNull <T> List<T> removeSelectedItems(@NotNull JList<T> list, @Nullable Condition<? super T> condition)