void (@NonNls @NotNull String pluginId, @NonNls @NotNull String phase, long time, @NotNull Map<String, Object2LongOpenHashMap<String>> pluginCostMap) { Object2LongMap<String> costPerPhaseMap = pluginCostMap.computeIfAbsent(pluginId, __ -> new Object2LongOpenHashMap<>()); synchronized (costPerPhaseMap) { costPerPhaseMap.mergeLong(phase, time, Math::addExact); } }