@Nullable
  Map<String, Map<String, BuildTargetState>> loadMetadataForCommit(@NotNull JpsNettyClient nettyClient, @NotNull String metadataId) {
    // On server commitId is the same as metadataId this data simply located in different folders
    File tmpFolder = new File(PathManager.getTempPath());
    File metadataFile = myClient.downloadMetadataById(nettyClient, metadataId, tmpFolder);
    if (metadataFile == null) return null;

    try (BufferedReader bufferedReader = new BufferedReader(new FileReader(metadataFile))) {
      return myGson.fromJson(bufferedReader, myTokenType);
    }
    catch (IOException e) {
      LOG.warn("Couldn't parse content of file " + metadataFile.getName(), e);
    }
    finally {
      if (metadataFile.exists()) FileUtil.delete(metadataFile);
    }
    return null;
  }
@Nullable
  Map<String, Map<String, BuildTargetState>> loadMetadataForCommit(@NotNull JpsNettyClient nettyClient, @NotNull String metadataId)