293031323334353637
if (getHost() instanceof StatePart) { StatePart part = (StatePart) getHost(); return ((StateLabel) part.getFigure()); } else { IfPart part = (IfPart) getHost(); return ((StateLabel) part.getFigure()); } }