void (@NotNull SimpleColoredComponent component) { synchronized (mySections) { for (TextSection section : mySections) { final TextAttributes attributes = section.getTextAttributes(); component.append(section.getText(), SimpleTextAttributes.fromTextAttributes(attributes)); } component.setIcon(myIcon); } }