refillProjections.set(i, task);
ArrayList refills = (ArrayList) refillProjections.get(i); if(refills == null) { refills = new ArrayList(); refillProjections.set(i, refills); } if(!refills.contains(task)) { refills.add(task); }
    public void addRefillProjection(Task task) {        long start = getStartTime(task);        long end = getEndTime(task);        // Test for Failed Dispositions Bug #2033        if (start == 0L) {            return;        }        int bucket_start = convertTimeToBucket(start, true);        int bucket_end = convertTimeToBucket(end, true);        while (bucket_end >= refillProjections.size()) {            refillProjections.add(null);        }        for (int i = bucket_start; i < bucket_end; i++) {            refillProjections.set(i, task);        }    }