google-java-format import sorting for AOSP
How to get similar google java formatting in intellij and with maven - Stack Overflow
Maven: Inconsistent formatting of Java (google AOSP style) with plugin and google-java-format.jar
code formatting - Google IntelliJ java style: changing 2-space indentation to 4-space indentation - Stack Overflow
I was able to change to 4-space indentations by selecting the Android Open Source Project (AOSP) style in the google-java-format plugin settings:

It looks like the only difference between the two styles is that AOSP doubles the spacing to 4 instead of 2: https://github.com/google/google-java-format/blob/master/core/src/main/java/com/google/googlejavaformat/java/JavaFormatterOptions.java#L37
First I disabled the IntelliJ google-java-format plugin.Downloaded IntelliJ-java-google-style.xml from here and modified indent size property as below. After importing this style in IntelliJ, I am able to indent to 4 spaces. To import the code style XML, please refer to this link
<codeStyleSettings language="CSS">
<indentOptions>
<option name="INDENT_SIZE" value="4" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="4" />
</indentOptions>
</codeStyleSettings>
I am setting up my java IDE with neovim, and I am searching for a good formatter. I have came across google-java-format, yet I want to know if there is any other alternative?