List<ExecutionEvent> (final AntBuildTarget target) { final List<ExecutionEvent> list = new ArrayList<>(); synchronized (myEventToTargetMap) { for (final ExecutionEvent event : myEventToTargetMap.keySet()) { final AntBuildTarget targetForEvent = getTargetForEvent(event); if (target.equals(targetForEvent)) { list.add(event); } } } return list; }