public Long getStoredFileHash(File file, BuildTarget<?> target) throws IOException {
    HashStampPerTarget[] state = getState(relativePath(file));
    if (state == null) return null;
    int targetId = myTargetsState.getBuildTargetId(target);
    for (HashStampPerTarget filesStampPerTarget : state) {
      if (filesStampPerTarget.targetId == targetId) return filesStampPerTarget.hash;
    }
    return null;
  }
public Long getStoredFileHash(File file, BuildTarget<?> target)