protected boolean containsChild(@NotNull VirtualFile file, @NotNull Predicate<? super VirtualFile> predicate) {
    if (file.isDirectory()) {
      for (VirtualFile child : file.getChildren()) {
        if (predicate.test(child)) return true;
      }
    }
    return false;
  }
protected boolean containsChild(@NotNull VirtualFile file, @NotNull Predicate<? super VirtualFile> predicate)