RecentlyChangedFilesState () { synchronized (state) { RecentlyChangedFilesState stateSnapshot = new RecentlyChangedFilesState(); stateSnapshot.changedPaths.addAll(state.changedPaths); return stateSnapshot; } }