protected boolean processSubPackages(final PsiPackage pkg, final Processor<? super PsiPackage> processor) {
    for (final PsiPackage aPackage : pkg.getSubPackages(getResolveScope())) {
      if (!processor.process(aPackage)) return false;
      if (!processSubPackages(aPackage, processor)) return false;
    }
    return true;
  }
protected boolean processSubPackages(final PsiPackage pkg, final Processor<? super PsiPackage> processor)