void (@NotNull JPanel panel, boolean isSelected) { String description = getDescription(); if (description == null) { return; } SimpleColoredComponent descriptionComponent = new SimpleColoredComponent(); descriptionComponent.append(description, getDescriptionAttributes(isSelected)); descriptionComponent.setTextAlign(SwingConstants.RIGHT); panel.add(descriptionComponent, BorderLayout.CENTER); }