public static byte @NotNull [] loadBytes(@NotNull VirtualFile file) throws IOException {
    return FileUtilRt.isTooLarge(file.getLength()) ?
           loadNBytes(file, FileUtilRt.LARGE_FILE_PREVIEW_SIZE) :
           file.contentsToByteArray();
  }
public static byte @NotNull [] loadBytes(@NotNull VirtualFile file)