private static Object readContent(VirtualFile file) {
    try {
      var nioFile = Path.of(toIoPath(file));
      return readIfNotTooLarge(nioFile);
    }
    catch (IOException e) {
      return e;
    }
  }
private static Object readContent(VirtualFile file)