IDEADEV-41184 (Apply patch: exception occures if the patched file is modified locally)