private static int getContentHash(File file) {
    if (ProjectStamps.TRACK_LIBRARY_CONTENT) {
      try {
        if (!file.isFile() || !file.getName().endsWith(".jar")) {
          return 0;
        }

        MessageDigest digest = MessageDigest.getInstance("SHA-256");
        FileInputStream inputStream = new FileInputStream(file);

        byte[] bytesBuffer = new byte[1024];
        int bytesRead;

        while ((bytesRead = inputStream.read(bytesBuffer)) != -1) {
          digest.update(bytesBuffer, 0, bytesRead);
        }

        byte[] hashBytes = digest.digest();
        inputStream.close();

        ByteBuffer buffer = ByteBuffer.wrap(hashBytes);
        return buffer.getInt();
      }
      catch (NoSuchAlgorithmException | IOException e) {
        throw new RuntimeException(e);
      }
    }
    return 0;
  }
private static int getContentHash(File file)