void (@NotNull AbstractColorsScheme source, @NotNull AbstractColorsScheme target) { Map<ColorKey, Color> fileStatusColors = target.getColorKeys().stream().filter(FILE_STATUS_COLORS).collect( Collectors.toMap(Function.identity(), target::getDirectlyDefinedColor)); source.copyTo(target); for (ColorKey key : fileStatusColors.keySet()) { target.setColor(key, fileStatusColors.get(key)); } target.setSaveNeeded(true); }