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