/** Full refresh clears existing resources and watchers and does a clean refresh. */ private void fullRefresh() throws IOException { resolutionsByResource = Maps.newIdentityHashMap(); childPathsByParentPath = ArrayListMultimap.create(); maybeInitializeWatchService(); onNewDirectory(rootDirectory); }