private boolean containsFileOfType(VirtualFile rootCandidate, final ProgressIndicator progressIndicator) {
    return !VfsUtilCore.processFilesRecursively(rootCandidate, virtualFile -> {
      progressIndicator.checkCanceled();
      if (virtualFile.isDirectory()) {
        progressIndicator.setText2(virtualFile.getPresentableUrl());
        return true;
      }
      return !myCondition.test(virtualFile);
    });
  }
private boolean containsFileOfType(VirtualFile rootCandidate, final ProgressIndicator progressIndicator)