private static byte[] createChecksum(VirtualFile file) throws Exception {
    byte[] buffer = new byte[1024];
    MessageDigest md5 = DigestUtil.md5();
    int read;

    try (InputStream fis = file.getInputStream()) {
      while ((read = fis.read(buffer)) > 0) md5.update(buffer, 0, read);

      return md5.digest();
    }
  }
private static byte[] createChecksum(VirtualFile file)