public static List<LogEntry>
    getBalancerRejectionEntries(MasterProtos.BalancerRejectionsResponse response) {
    List<RecentLogs.BalancerRejection> balancerRejections = response.getBalancerRejectionList();
    if (CollectionUtils.isEmpty(balancerRejections)) {
      return Collections.emptyList();
    }
    return balancerRejections.stream()
      .map(balancerRejection -> new BalancerRejection.Builder()
        .setReason(balancerRejection.getReason())
        .setCostFuncInfoList(balancerRejection.getCostFuncInfoList()).build())
      .collect(Collectors.toList());
  }
Convert {@link ClearSlowLogResponses} to boolean
@param clearSlowLogResponses Clear slowlog response protobuf instance
@return boolean representing clear slowlog response
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java