void (@Nullable FileStatusColorDescriptor descriptor) { if (descriptor == null) { myColorSettingsPanel.setVisible(false); } else { myColorSettingsPanel.setVisible(true); myFileStatusColorBox.setSelected(descriptor.getColor() != null); myRestoreButton.setEnabled(!descriptor.isDefault()); myColorPanel.setSelectedColor(descriptor.getColor()); } }