Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { final Component rendererComponent = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value != null) { String loc = value.toString().replace('\\', '/'); final int jarDelimIndex = loc.indexOf(JarFileSystem.JAR_SEPARATOR); final VirtualFile path; if (jarDelimIndex != -1) { path = JarFileSystem.getInstance().findFileByPath(loc); } else { path = LocalFileSystem.getInstance().findFileByPath(loc); } Color fg = isSelected ? UIUtil.getTableSelectionForeground(hasFocus) : UIUtil.getTableForeground(); setForeground(path != null ? fg : new Color(210, 0, 0)); } return rendererComponent; }