private List<TaskGroupEntry<TaskItem>> entriesSnapshot() {
        List<TaskGroupEntry<TaskItem>> entries = new ArrayList<>();
        super.prepareForEnumeration();
        for (TaskGroupEntry<TaskItem> current = super.getNext(); current != null; current = super.getNext()) {
            entries.add(current);
            super.reportCompletion(current);
        }
        return entries;
    }
private List < TaskGroupEntry < TaskItem > > entriesSnapshot ( ) { List < TaskGroupEntry < TaskItem > > entries = new ArrayList < > ( ) ; super . prepareForEnumeration ( ) ; for ( TaskGroupEntry < TaskItem > current = super . getNext ( ) ; current != null ; current = super . getNext ( ) ) { entries . add ( current ) ; super . reportCompletion ( current ) ; } return entries ; }
@return list with current task entries in this task group