@Override
    public boolean processFile(@NotNull VirtualFile fileOrDir) {
      PsiFile file = myPsiManager.findFile(fileOrDir);
      if (file == null) return true;
      if (!(file instanceof PsiJavaFile javaFile)) return true;
      PsiImportList imports = javaFile.getImportList();
      if (imports == null) return true;
      for (PsiImportStatement importStatement : imports.getImportStatements()) {
        if (!myShouldProcessFollowingFile.test(importStatement)) return false;
      }
      return true;
    }
@Override
    public boolean processFile(@NotNull VirtualFile fileOrDir)