private void addPackage(@NotNull final String packageName, @NotNull final String packagePath) { myLibRootUrls.add(VfsUtilCore.pathToUrl(packagePath)); List<String> paths = myPackagesMap.get((packageName)); if (paths == null) { paths = new SmartList<String>(); myPackagesMap.put(packageName, paths); } if (!paths.contains(packagePath)) { paths.add(packagePath); } }
public void addRoots(final Collection<String> dirPaths) { for (String path : dirPaths) { myLibRootUrls.add(VfsUtilCore.pathToUrl(path)); } }