Set<String> () { lockData(); try { try { Set<String> result = CollectionFactory.createFilePathLinkedSet(); result.addAll(myDeletedPaths); return result; } finally { myDeletedPaths.clear(); } } finally { unlockData(); } }