Maybe you could just use tabs and save and read them as 2 spaces but display as 4.
I think Idea IDEs have that flexibility... Not sure.