I’m using IntelliJ and experienced the same thing. As a workaround, I unchecked “safe write”. Apparently, Safe write saves content to a temp file, then deletes the original and finally renames the new file. Probably what messes things up, since I guess this means a new inode.
The setting is located under Preferences/Appearance & Behavior/System Settings