@Override
  public byte @Nullable [] getContentAsBytes() throws VcsException {
    if (myFile.isDirectory()) {
      return null;
    }
    try {
      if (!GitUtil.isHashString(myRevision.getRev())) {
        // do not cache contents for 'HEAD' or branch/tag references
        return ContentRevisionCache.loadAsBytes(myFile, this::loadContent);
      }
      return ContentRevisionCache.getOrLoadAsBytes(myProject, myFile, myRevision, GitVcs.getKey(), REPOSITORY_CONTENT, this::loadContent);
    }
    catch (IOException e) {
      throw new VcsException(e);
    }
  }
@Override
  public byte @Nullable [] getContentAsBytes()