8d055f6952
It previously worked because of updating all counters. That behaviour was removed in https://github.com/JetBrains/intellij-community/commit/3b860d69ee1b32b210ddf88b1e042dd70ea87cd9. getUserData(FILE_OUT_OF_BLOCK_MODIFICATION_COUNT) is probably useless because copied file has isEventSystemEnabled() == false that prevents sending notifications about PSI changes. This need additional checks.