private byte @Nullable [] loadFromVersionControl() {
    try {
      final AbstractVcs vcs = VcsUtil.getVcsFor(myProject, myFile);
      if (vcs == null) return null;

      final VcsHistoryProvider historyProvider = vcs.getVcsHistoryProvider();
      if (historyProvider == null) return null;

      final FilePath filePath = VcsContextFactory.getInstance().createFilePathOn(myFile);
      final VcsHistorySession session = historyProvider.createSessionFor(filePath);
      if (session == null) return null;

      final List<VcsFileRevision> list = session.getRevisionList();
      if (list == null) return null;

      for (VcsFileRevision revision : list) {
        final Date revisionDate = revision.getRevisionDate();
        if (revisionDate == null) return null;

        if (revisionDate.getTime() < myDate) {
          return revision.loadContent();
        }
      }
    }
    catch (Exception e) {
      LOG.info(e);
    }
    return null;
  }
private byte @Nullable [] loadFromVersionControl()