Fix NPE (WI-22515).
Save documents in EDT in console.
Merge remote-tracking branch 'origin/master'