String () { for (String name : myColorToButtonMap.keySet()) { ColorButton button = myColorToButtonMap.get(name); if (!button.isSelected()) continue; if (button instanceof CustomColorButton) { String colorHexString = ColorUtil.toHex(button.getColor()); String colorID = FileColorManagerImpl.getColorID(button.getColor()); return colorID == null ? colorHexString : colorID; } return name; } return null; }