Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value == null) { setText(""); } else { final String scopeId = ((NamedScope)value).getScopeId(); if (!isSelected) { final NamedScope scope = NamedScopesHolder.getScope(myProject, scopeId); if (scope == null) setForeground(JBColor.RED); } setText(((NamedScope)value).getPresentableName()); } return this; }