move restorePointers to the end
move restorePointers to the end, because "state" is in the ProjectExplorer. In the tests, it will not be created and therefore restorePointers will never called in the tests
move restorePointers to the end, because "state" is in the ProjectExplorer. In the tests, it will not be created and therefore restorePointers will never called in the tests