Color (@NonNls @NotNull String propertyName, Color color) { String key = propertyName + "!!!"; Object saved = UIManager.get(key); if (saved instanceof Color) { //in case a designer changed the key return (Color)saved; } UIManager.put(key, color); return color; }