void (@NotNull CodeStyleSettingsCustomizable consumer, @NotNull SettingsType settingsType) { if (settingsType == SettingsType.SPACING_SETTINGS) { consumer.showStandardOptions("SPACE_WITHIN_BRACKETS", "SPACE_WITHIN_BRACES", "SPACE_AFTER_COMMA", "SPACE_BEFORE_COMMA"); consumer.renameStandardOption("SPACE_WITHIN_BRACES", JsonBundle.message("formatter.space_within_braces.label")); consumer.showCustomOption(JsonCodeStyleSettings.class, "SPACE_BEFORE_COLON", JsonBundle.message("formatter.space_before_colon.label"), getInstance().SPACES_OTHER); consumer.showCustomOption(JsonCodeStyleSettings.class, "SPACE_AFTER_COLON", JsonBundle.message("formatter.space_after_colon.label"), getInstance().SPACES_OTHER); } else if (settingsType == SettingsType.BLANK_LINES_SETTINGS) { consumer.showStandardOptions("KEEP_BLANK_LINES_IN_CODE"); } else if (settingsType == SettingsType.WRAPPING_AND_BRACES_SETTINGS) { consumer.showStandardOptions("RIGHT_MARGIN", "WRAP_ON_TYPING", "KEEP_LINE_BREAKS", "WRAP_LONG_LINES"); consumer.showCustomOption(JsonCodeStyleSettings.class, "KEEP_TRAILING_COMMA", JsonBundle.message("formatter.trailing_comma.label"), getInstance().WRAPPING_KEEP); consumer.showCustomOption(JsonCodeStyleSettings.class, "ARRAY_WRAPPING", JsonBundle.message("formatter.wrapping_arrays.label"), null, getInstance().WRAP_OPTIONS, CodeStyleSettingsCustomizable.WRAP_VALUES); consumer.showCustomOption(JsonCodeStyleSettings.class, "OBJECT_WRAPPING", JsonBundle.message("formatter.objects.label"), null, getInstance().WRAP_OPTIONS, CodeStyleSettingsCustomizable.WRAP_VALUES); consumer.showCustomOption(JsonCodeStyleSettings.class, "PROPERTY_ALIGNMENT", JsonBundle.message("formatter.align.properties.caption"), JsonBundle.message("formatter.objects.label"), Holder.ALIGN_OPTIONS, Holder.ALIGN_VALUES); } }