Collection<VirtualFile> () { Set<VirtualFile> roots= new HashSet<>(); final PsiDirectory[] dirs = PackageUtil.getDirectories(getPackage(), myModule, isLibraryElement()); for (PsiDirectory each : dirs) { roots.add(each.getVirtualFile()); } return roots; }