Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component component = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); component.setForeground(RenderingUtil.getForeground(table, isSelected)); component.setBackground(RenderingUtil.getBackground(table, isSelected)); if (value instanceof String) { NamedScope namedScope = NamedScopesHolder.getScope(tableSettings.myProject, (String)value); if (namedScope != null) { setText(namedScope.getPresentableName()); } else { if (LangBundle.message("scopes.table.everywhere.else").equals(value)) { setText((String) value); } else { setText(LangBundle.message("scopes.table.missing.scope", value)); component.setForeground(NamedColorUtil.getErrorForeground()); } } } return component; }