void () { for (NamedScope scope : CustomScopesAggregator.getAllCustomScopes(myProject)) { String scopeName = scope.getScopeId(); String colorName = scope.getDefaultColorName(); if (StringUtil.isEmpty(colorName)) continue; myPredefinedScopeNameToColor.put(scopeName, colorName); String propertyKey; if (NonProjectFilesScope.NAME.equals(scopeName)) { propertyKey = "file.colors.enable.non.project"; } else if (TestsScope.NAME.equals(scopeName)) { propertyKey = "file.colors.enable.tests"; } else { propertyKey = "file.colors.enable.custom." + scopeName; } myPredefinedScopeNameToPropertyKey.put(scopeName, propertyKey); } PropertiesComponent propertyComponent = PropertiesComponent.getInstance(); for (String scopeName : myPredefinedScopeNameToPropertyKey.keySet()) { if (findConfiguration(scopeName, false) == null) { String colorName = getColorNameForScope(propertyComponent, scopeName, myPredefinedScopeNameToPropertyKey); if (!colorName.isEmpty()) { Color color = ColorUtil.fromHex(colorName, null); String colorID = color == null ? null : FileColorManagerImpl.getColorID(color); myApplicationLevelConfigurations.add(new FileColorConfiguration(scopeName, colorID == null ? colorName : colorID)); } } } }