@Override
  public Object @NotNull [] getVariants() {
    Set<PsiPackage> subPackages = new HashSet<>();
    for (PsiPackage psiPackage : getContext()) {
      ContainerUtil.addAll(subPackages, psiPackage.getSubPackages(myReferenceSet.getResolveScope()));
    }
    return subPackages.toArray();
  }
@Override
  public Object @NotNull [] getVariants()