DetailsComponent (final @Nullable String emptyContentText) { final @NonNls String s = XmlStringUtil.wrapInHtml("<center>" + (emptyContentText != null ? emptyContentText : "") + "</center>"); myEmptyContentLabel.setText(s); return this; }