class PreviewFpsRangeSelectors {

    public static SelectorFunction<Collection<Range<Integer>>, Range<Integer>> nearestToExactFps(int fps) {
        return firstAvailable(fromExactFps(fps),
                filtered(rangeWithHighestFps(), new InBoundsFpsRangePredicate(fps * FPS_RANGE_BOUNDS_SCALE)));
    }

}