IntelliJ saves files by writing content to a temp ...
# intellij
y
IntelliJ saves files by writing content to a temp file, renaming the original file to a temp name and then renaming the temp file to the original one