content: package com.google.android.material.shape;
  
  import android.graphics.drawable.Drawable;
  import android.view.View;
  import com.google.android.material.internal.ViewUtils;
  
  public class MaterialShapeUtils {
      private MaterialShapeUtils() {
      }
  
      static CornerTreatment createCornerTreatment(int cornerFamily) {
          switch (cornerFamily) {
              case 0:
                  return new RoundedCornerTreatment();
              case 1:
                  return new CutCornerTreatment();
              default:
                  return createDefaultCornerTreatment();
          }
      }
  
      static CornerTreatment createDefaultCornerTreatment() {
          return new RoundedCornerTreatment();
      }
  
      static EdgeTreatment createDefaultEdgeTreatment() {
          return new EdgeTreatment();
      }
  
      public static void setElevation(View view, float elevation) {
          Drawable background = view.getBackground();
          if (background instanceof MaterialShapeDrawable) {
              ((MaterialShapeDrawable) background).setElevation(elevation);
          }
      }
  
      public static void setParentAbsoluteElevation(View view) {
          Drawable background = view.getBackground();
          if (background instanceof MaterialShapeDrawable) {
              setParentAbsoluteElevation(view, (MaterialShapeDrawable) background);
          }
      }
  
      public static void setParentAbsoluteElevation(View view, MaterialShapeDrawable materialShapeDrawable) {
          if (materialShapeDrawable.isElevationOverlayEnabled()) {
              materialShapeDrawable.setParentAbsoluteElevation(ViewUtils.getParentAbsoluteElevation(view));
          }
      }
  }
  