void (JComponent contentComponent) { if (contentComponent instanceof ListWithFilter<?> listWithFilter) { Insets insets = PopupUtil.getListInsets(StringUtil.isNotEmpty(myTitle), StringUtil.isNotEmpty(myAd)); listWithFilter.getList().setBorder(new EmptyBorder(insets)); } }