void (List<? extends TextParagraph> tipContent) { if (tipContent.isEmpty()) return; TextParagraph last = tipContent.get(tipContent.size() - 1); List<TextPart> parts = last.getTextParts(); Border border = parts.size() == 1 && parts.get(0) instanceof IllustrationTextPart ? null : JBUI.Borders.emptyBottom((int)TextParagraph.BIG_INDENT); myTextPane.setBorder(border); }