void (@NotNull JTable table, @Nullable Object value, boolean selected, boolean hasFocus, int row, int column) { if (value == null) { append("No data", SimpleTextAttributes.ERROR_ATTRIBUTES); } else { try { int iv = Integer.parseInt(value.toString()); append("value ", SimpleTextAttributes.GRAYED_ITALIC_ATTRIBUTES); append(value.toString(), iv <= 8 ? SimpleTextAttributes.REGULAR_ATTRIBUTES : WARNING_CELL_ATTRIBUTES); } catch (NumberFormatException nfe) { append(value.toString(), SimpleTextAttributes.ERROR_ATTRIBUTES); } } }