TextAttributes (boolean selected) { myTextControl.clear(); TextAttributes attributes = myColorsProvider.getTextAttributes(myCondition.getType(), selected); myTextControl.append(getComponentText(), SimpleTextAttributes.fromTextAttributes(attributes)); return attributes; }