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