IntelliJ keeps formatting this:
public void addElement(Element elem) { this.elements.add(elem); }
into this:
public voi
below is the shortcut for Merge multiple lines into a line -
Ctrl+Shift+J
Look in Preferences (or Settings), Editor, General, Code Folding, Collapse by default, One-line methods