public static EnumSet<ClusterMetrics.Option> toOptions(List<ClusterStatusProtos.Option> options) {
    return options.stream().map(ClusterMetricsBuilder::toOption)
      .collect(Collectors.toCollection(() -> EnumSet.noneOf(ClusterMetrics.Option.class)));
  }
Convert a list of ClusterStatusProtos.Option to an enum set of ClusterMetrics.Option
@param options the pb options
@return an enum set of ClusterMetrics.Option
hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterMetricsBuilder.java