/**
   * Get names that could have jet descriptor equivalents. It could be inaccurate and return more
   * results than necessary.
   */
  static Collection<String> getPossiblePackageDeclarationsNames(
      Project project, GlobalSearchScope scope) {
    Collection<String> result = new ArrayList<String>();

    for (PsiClass packageClass : getClassesForKotlinPackages(project, scope)) {
      for (PsiMethod psiMethod : packageClass.getMethods()) {
        if (psiMethod.getModifierList().hasModifierProperty(PsiModifier.STATIC)) {
          result.add(psiMethod.getName());
        }
      }
    }

    return result;
  }