filteredShiftsIdsToEnroll = (List) CollectionUtils.select( shiftIdsToEnroll, new Predicate() {  public boolean evaluate(Object arg0) { final Integer shiftId = (Integer) arg0;  if (CollectionUtils.exists(shiftEnrollments, new Predicate() {  public boolean evaluate(Object arg0) { ITurnoAluno shiftStudent = (ITurnoAluno) arg0; return shiftStudent.getShift() .getIdInternal() .equals(shiftId); } })) { return false; } else { return true; }  } });
return shiftIdsToEnroll;
    private void calculateShiftsToEnroll(List shiftIdsToEnroll,            final List shiftEnrollments, List filteredShiftsIdsToEnroll)    {        filteredShiftsIdsToEnroll = (List) CollectionUtils.select(                shiftIdsToEnroll, new Predicate()                {                    public boolean evaluate(Object arg0)                    {                        final Integer shiftId = (Integer) arg0;                        if (CollectionUtils.exists(shiftEnrollments,                                new Predicate()                                {                                    public boolean evaluate(Object arg0)                                    {                                        ITurnoAluno shiftStudent = (ITurnoAluno) arg0;                                        return shiftStudent.getShift()                                                .getIdInternal()                                                .equals(shiftId);                                    }                                }))                        {                            return false;                        }                        else                        {                            return true;                        }                    }                });    }