Do you just mean you want to adjust the code style rules? Yes you can do that in IJ, just a matter of finding the indent rule to adjust.
The Spark style is pretty normal stuff, though not 100% consistent.I prefer the first style in this case. Sometimes it's a matter of judgment when to differ from a standard style for better readability.
Hi,
I use google java code style in intellj idea. But when I reformat the following codes, its inconsistent with the code in spark.
Before reformat:

After reformat:

Why? And how to fix the issue.