/**
  * Gets the owner {@link PictogramElement} of a Label from a given Text {@link GraphicsAlgorithm}.
  *
  * @param text a GraphicsAlgorithm that contains the Label text.
  * @return the PictogramElement that is the owner of the Label shape.
  */
 public static PictogramElement getLabelOwner(GraphicsAlgorithm text) {
   PictogramElement pe = text.getPictogramElement();
   if (isLabelShape(pe)) return getLabelOwner(pe);
   return null;
 }