public static boolean hasInvalidFiles(@NotNull Iterable<? extends VirtualFile> files) {
    for (VirtualFile file : files) {
      if (!file.isValid()) {
        return true;
      }
    }
    return false;
  }
public static boolean hasInvalidFiles(@NotNull Iterable<? extends VirtualFile> files)