String (PropertiesComponent propertyComponent, String scopeName, Map<String, String> scopeNameMap) { String colorName = propertyComponent.getValue(scopeNameMap.get(scopeName)); if (colorName == null) { // backward compatibility, previously it was saved incorrectly as scope name instead of specified property key colorName = propertyComponent.getValue(scopeName); if (colorName == null) { colorName = myPredefinedScopeNameToColor.get(scopeName); } } return colorName; }