Currently any reformatting by any IDE has a large risk introducing whitespace changes. Add .editorconfig file corresponding to current sources. Also look into Intellij reformatting.