I suspect that your Intellij is not actually changing the actual file but instead visually collapsing one line methods in the display.
To have Intellij not change the display of one line methods, look at:
Preferences (or Settings), Editor, General, Code Folding, Collapse by default, One-line methods
