void (@NotNull VirtualFile file, @NotNull Runnable runnable) { file.putUserData(UndoConstants.FORCE_RECORD_UNDO, Boolean.TRUE); try { runnable.run(); } finally { file.putUserData(UndoConstants.FORCE_RECORD_UNDO, null); } }