Collection<PsiPackage> (@Nullable PsiPackage context, final String packageName) { if (context != null) { return ContainerUtil.filter(context.getSubPackages(getResolveScope()), aPackage -> Objects.equals(aPackage.getName(), packageName)); } return Collections.emptyList(); }