List<String> (@NotNull PsiPackage aPackage) { String qName = aPackage.getQualifiedName().replace('.', '/') + '/' + PACKAGE_SUMMARY_FILE; for (PsiDirectory directory : aPackage.getDirectories()) { List<String> url = findUrlForVirtualFile(aPackage.getProject(), directory.getVirtualFile(), qName); if (url != null) { return url; } } return null; }