final Size size = new Size();
final String message = ((MessageContent) getContent()).getMessage();
final String heading = ((MessageContent) getContent()).title();
size.ensureHeight(errorIcon.getHeight());
final Text text = Toolkit.getText(ColorsAndFonts.TEXT_NORMAL);
final Text titleText = Toolkit.getText(ColorsAndFonts.TEXT_TITLE);
size.extendWidth(text.stringWidth(message, MAX_TEXT_WIDTH));
int textHeight = titleText.getLineHeight();
textHeight += text.stringHeight(message, MAX_TEXT_WIDTH);