static OutlierDetection of(OutlierRule rule) {
        requireNonNull(rule, "rule");

        if (rule == OutlierRule.of()) {
            return of();
        }
        return builder(rule).build();
    }
Returns a new {@link OutlierDetection} with the specified {@link OutlierRule}.
core/src/main/java/com/linecorp/armeria/common/outlier/OutlierDetection.java