void (@NotNull CommonCodeStyleSettings commonSettings, @NotNull CommonCodeStyleSettings.IndentOptions indentOptions) { indentOptions.INDENT_SIZE = 4; commonSettings.ALIGN_MULTILINE_PARAMETERS_IN_CALLS = true; commonSettings.KEEP_BLANK_LINES_IN_DECLARATIONS = 1; // Don't set it to 2 -- this setting is used implicitly in a lot of methods related to spacing, // e.g. in SpacingBuilder#blankLines(), and can lead to unexpected side-effects in formatter's // behavior commonSettings.KEEP_BLANK_LINES_IN_CODE = 1; commonSettings.METHOD_PARAMETERS_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED; commonSettings.CALL_PARAMETERS_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED; }