Iterator<PsiPackage> (PsiPackage psiPack) { final Set<PsiPackage> psiPackages = myPackageDependencies.get(psiPack); if (psiPackages == null) { //for packs without java classes return Collections.emptyIterator(); } return psiPackages.iterator(); }