private static boolean ensureValid(@NotNull VirtualFile file, @NotNull Object container) {
    return RootFileValidityChecker.ensureValid(file, container, null);
  }
private static boolean ensureValid(@NotNull VirtualFile file, @NotNull Object container)