IDEA-133432 IDE hangs when deleting a line multiple times because of xdebugger

(cherry picked from commit f0b9a3286aa09802040224f77fbc1c5f27fbbfd1)
IDEA-132772 Changed objects are not marked as modified

(cherry picked from commit 77d9be063ad7bd104930f31602d8c59689ee9954)