private void filerByPackageName(@NotNull Collection<PsiClass> classList, @NotNull PsiFile file) {
    String packageName = StringUtil.getPackageName(getQualifiedName(myReferenceElement));
    if (!packageName.isEmpty() &&
        file instanceof PsiJavaFile &&
        !ArrayUtil.contains(packageName, ((PsiJavaFile)file).getImplicitlyImportedPackages())) {
      classList.removeIf(aClass -> {
        String classQualifiedName = aClass.getQualifiedName();
        return classQualifiedName != null && !packageName.equals(StringUtil.getPackageName(classQualifiedName));
      });
    }
  }
private void filerByPackageName(@NotNull Collection<PsiClass> classList, @NotNull PsiFile file)