def METHOD_NAME(self, event=None):
    self.shape = Box(
        Box(
            Text(
                text=lambda: stereotypes_str(
                    self.subject, self.additional_stereotypes()
                )
            ),
            Text(
                text=lambda: self.subject.name or "",
                width=lambda: self.width - 4,
                style={
                    "font-weight": FontWeight.BOLD,
                    "font-style": FontStyle.ITALIC
                    if self.subject and self.subject.isAbstract
                    else FontStyle.NORMAL,
                },
            ),
            Text(
                text=lambda: from_package_str(self),
                style={"font-size": "x-small"},
            ),
            style={
                "padding": (12, 4, 12, 4),
                "justify-content": JustifyContent.START,
            },
        ),
        *(
            self.show_references
            and self.subject
            and [
                self.block_compartment(
                    self.diagram.gettext("references"),
                    lambda a: not a.association and a.aggregation != "composite",
                )
            ]
            or []
        ),
        *(
            self.show_values
            and self.subject
            and [
                self.block_compartment(
                    self.diagram.gettext("values"),
                    lambda a: isinstance(a.type, ValueType)
                    and a.aggregation == "composite",
                )
            ]
            or []
        ),
        *(
            self.show_attributes
            and self.subject
            and [attributes_compartment(self.subject)]
            or []
        ),
        *(
            self.show_operations
            and self.subject
            and [
                self.operations_compartment(
                    self.diagram.gettext("operations"), self.subject
                ),
            ]
            or []
        ),
        *(self.show_stereotypes and stereotype_compartments(self.subject) or []),
        style={
            "justify-content": JustifyContent.START,
        },
        draw=draw_border,
    )