public static List<Job> getTheRightJobs(List<Job> jobs) {
        List<Job> list = Lists.newArrayList(jobs);
        Collections.sort(list, new Comparator<Job>() {
            @Override
            public int compare(Job o1, Job o2) {
                long result = o1.end - o2.end;
                return result > 0 ? 1 : result < 0 ? -1 : 0;
            }
        });

        List<Job> rightJobs = Lists.newArrayList();
        Job rightJob = list.get(0);
        rightJobs.add(rightJob);
        for (int i = 1; i < list.size(); i++) {
            Job job = list.get(i);
            if (job.start > rightJob.end) {
                rightJob = job;
                rightJobs.add(rightJob);
            }
        }
        return rightJobs;
    }