core/src/main/java/com/spotify/metrics/core/SemanticMetricRegistry.java [467:476]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (previous == null) {
            return addition;
        }

        if (!builder.isInstance(previous)) {
            throw new IllegalArgumentException(
                name + " is already used for a different type of metric");
        }

        return (T) previous;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



remote/src/main/java/com/spotify/metrics/remote/SemanticAggregatorMetricRegistry.java [83:92]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (previous == null) {
            return addition;
        }

        if (!builder.isInstance(previous)) {
            throw new IllegalArgumentException(
                name + " is already used for a different type of metric");
        }

        return (T) previous;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



