ResourceRootConfiguration (@NotNull File root) { if (myResourceRootsMap == null) { Map<File, ResourceRootConfiguration> map = FileCollectionFactory.createCanonicalFileMap(); for (ResourceRootConfiguration resource : webResources) { map.put(new File(resource.directory), resource); } myResourceRootsMap = map; } return myResourceRootsMap.get(root); }