private ImmutableMap.Builder<Event.Type, Event> builderWithout(Event.Type type) {
        ImmutableMap.Builder<Event.Type, Event> builder = new ImmutableMap.Builder<>();
        for (Event event : events.values())
            if (event.type() != type)
                builder.put(event.type(), event);
        return builder;
    }
Returns a copy of this history with the given event type removed (or an identical history if it was not
present) and the log unchanged.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/History.java