@Override
    public void writeExternal(Element parentElement, @NotNull CustomCodeStyleSettings parentSettings) throws WriteExternalException {
        if (CODE_STYLE_DEFAULTS != null) {
            KotlinCodeStyleSettings defaultKotlinCodeStyle = (KotlinCodeStyleSettings) parentSettings.clone();
            // Apply the chosen code style defaults to the value that is compared to when
            // writing the settings to disk to reduce the amount of fields to serialize.
            applyKotlinCodeStyle(CODE_STYLE_DEFAULTS, defaultKotlinCodeStyle, false);

            super.writeExternal(parentElement, defaultKotlinCodeStyle);
        } else {
            super.writeExternal(parentElement, parentSettings);
        }
    }
@Override
    public void writeExternal(Element parentElement, @NotNull CustomCodeStyleSettings parentSettings)