List<PsiPackageAccessibilityStatement> (@NotNull PsiPackage psiPackage, @NotNull MultiMap<PsiPackage, PsiPackageAccessibilityStatement> exports, @NotNull MultiMap<PsiPackage, PsiPackageAccessibilityStatement> opens) { List<PsiPackageAccessibilityStatement> result = new SmartList<>(); result.addAll(exports.get(psiPackage)); result.addAll(opens.get(psiPackage)); return result; }