void (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (!(value instanceof TableValueDescriptor descriptor)) { this.setBackground(null); return; } Color background = null; if (myColored) { try { double rangedValue = descriptor.getRangedValue(); if (!Double.isNaN(rangedValue)) { background = PyNumericViewUtil.rangedValueToColor(rangedValue); } } catch (NumberFormatException ignored) { } } this.setBackground(background); }