docs: @SuppressWarnings("unchecked")
    public static Map<String, String> getLabels(ObjectMeta metadata) {
      if (metadata != null) {
        Map<String, String> labels = metadata.getLabels();
        if (labels != null) {
          return labels;
        }
      }
      return Collections.EMPTY_MAP;
    }