@Override public void visitFile(@NotNull PsiFile file) {
          if (file instanceof PsiJavaFile psiJavaFile) {
            final PsiPackage aPackage = JavaPsiFacade.getInstance(psiManager.getProject()).findPackage(psiJavaFile.getPackageName());
            if (aPackage != null) {
              myPackages.put(aPackage.getQualifiedName(), aPackage);
            }
          }
        }
@Override public void visitFile(@NotNull PsiFile file)