void (SimpleColoredComponent renderer, JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { renderer.setIcon(AllIcons.General.Error); final String[] text = getText(); final String errorText = ((text != null) && (text.length > 0)) ? text[0] : ""; renderer.append(IdeBundle.message("error.tree.view.cell.error", errorText), SimpleTextAttributes.REGULAR_ATTRIBUTES); }